Changeset 1150b4cd for core


Ignore:
Timestamp:
Mar 14, 2017 1:33:39 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
4b722c9
Parents:
e7cfb2d
Message:

NBI: Adjust logging during extraction to use standard format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/NativeBigInteger.java

    re7cfb2d r1150b4cd  
    983983                    debug("loadResource list to try is: " + toTry);
    984984                    for (String s : toTry) {
    985                         System.out.println("trying to load resource: " + s);
     985                        debug("Trying to load resource " + s);
    986986                        if (loadFromResource(s)) {
    987987                            _nativeOk = true;
     
    11161116        URL resource = ClassLoader.getSystemResource(resourceName);
    11171117        if (resource == null) {
    1118             System.out.println("Resource name [" + resourceName + "] was not found");
     1118            info("Resource name [" + resourceName + "] was not found");
    11191119            return false;
    11201120        }
     
    11311131            fos = null;
    11321132            System.load(outFile.getAbsolutePath()); //System.load requires an absolute path to the lib
    1133             System.out.println("Loaded library: " + resource);
     1133            info("Loaded library: " + resource);
    11341134        } catch (UnsatisfiedLinkError ule) {
    11351135            // don't include the exception in the message - too much
    1136             System.out.println("Failed to load the resource " + resourceName + " - not a valid library for this platform");
     1136            warn("Failed to load the resource " + resourceName + " - not a valid library for this platform");
    11371137            if (outFile != null)
    11381138                outFile.delete();
    11391139            return false;
    11401140        } catch (IOException ioe) {
    1141             System.out.println("Problem writing out the temporary native library data: " + ioe.toString());
     1141            warn("Problem writing out the temporary native library data: " + ioe);
    11421142            if (outFile != null)
    11431143                outFile.delete();
Note: See TracChangeset for help on using the changeset viewer.