Make shutdown InterruptedExceptions not noisy
This commit is contained in:
parent
6b6b01ccb7
commit
d1d97d986a
1 changed files with 8 additions and 4 deletions
|
|
@ -228,8 +228,10 @@ public class MapManager {
|
||||||
try {
|
try {
|
||||||
r.run();
|
r.run();
|
||||||
} catch (Exception x) {
|
} catch (Exception x) {
|
||||||
Log.severe("Exception during render job: " + r);
|
if (!(x instanceof InterruptedException)) { // Avoid shutdown noise
|
||||||
x.printStackTrace();
|
Log.severe("Exception during render job: " + r);
|
||||||
|
x.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -244,8 +246,10 @@ public class MapManager {
|
||||||
try {
|
try {
|
||||||
command.run();
|
command.run();
|
||||||
} catch (Exception x) {
|
} catch (Exception x) {
|
||||||
Log.severe("Exception during render job: " + command);
|
if (!(x instanceof InterruptedException)) { // Avoid shutdown noise
|
||||||
x.printStackTrace();
|
Log.severe("Exception during render job: " + command);
|
||||||
|
x.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, delay, unit);
|
}, delay, unit);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue