fixes SLF4J-377

note: cannot use try-with-resources as slf4j is still on java 1.5
This commit is contained in:
barney2k7 2016-12-13 10:35:37 +01:00
parent 64fa52c2f8
commit baea9dbaa9
2 changed files with 13 additions and 3 deletions

View File

@ -157,10 +157,15 @@ public class SimpleLog implements Log, Serializable {
if (null != in) {
try {
simpleLogProps.load(in);
in.close();
} catch (java.io.IOException e) {
// ignored
}
} finally {
try {
in.close();
} catch (java.io.IOException e) {
// ignored
}
}
}
showLogName = getBooleanProperty(systemPrefix + "showlogname", showLogName);

View File

@ -245,9 +245,14 @@ public class SimpleLogger extends MarkerIgnoringBase {
if (null != in) {
try {
SIMPLE_LOGGER_PROPS.load(in);
in.close();
} catch (java.io.IOException e) {
// ignored
} finally {
try {
in.close();
} catch (java.io.IOException e) {
// ignored
}
}
}
}