I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 51911bd9 authored by zzz's avatar zzz
Browse files

fix jetty deprecations

parent 1f5926e4
No related branches found
No related tags found
No related merge requests found
...@@ -405,7 +405,7 @@ public class I2PRequestLog extends AbstractLifeCycle implements RequestLog ...@@ -405,7 +405,7 @@ public class I2PRequestLog extends AbstractLifeCycle implements RequestLog
} }
catch (IOException e) catch (IOException e)
{ {
Log.warn(e); Log.getLogger((String)null).warn(e);
} }
} }
...@@ -449,7 +449,7 @@ public class I2PRequestLog extends AbstractLifeCycle implements RequestLog ...@@ -449,7 +449,7 @@ public class I2PRequestLog extends AbstractLifeCycle implements RequestLog
{ {
_fileOut = new RolloverFileOutputStream(_filename,_append,_retainDays,TimeZone.getTimeZone(_logTimeZone),_filenameDateFormat,null); _fileOut = new RolloverFileOutputStream(_filename,_append,_retainDays,TimeZone.getTimeZone(_logTimeZone),_filenameDateFormat,null);
_closeOut = true; _closeOut = true;
Log.info("Opened "+getDatedFilename()); Log.getLogger((String)null).info("Opened "+getDatedFilename());
} }
else else
_fileOut = System.err; _fileOut = System.err;
...@@ -475,9 +475,9 @@ public class I2PRequestLog extends AbstractLifeCycle implements RequestLog ...@@ -475,9 +475,9 @@ public class I2PRequestLog extends AbstractLifeCycle implements RequestLog
protected void doStop() throws Exception protected void doStop() throws Exception
{ {
super.doStop(); super.doStop();
try {if (_writer != null) _writer.flush();} catch (IOException e) {Log.ignore(e);} try {if (_writer != null) _writer.flush();} catch (IOException e) {Log.getLogger((String)null).ignore(e);}
if (_out != null && _closeOut) if (_out != null && _closeOut)
try {_out.close();} catch (IOException e) {Log.ignore(e);} try {_out.close();} catch (IOException e) {Log.getLogger((String)null).ignore(e);}
_out = null; _out = null;
_fileOut = null; _fileOut = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment