mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-27 20:58:40 +01:00
Make shutdown InterruptedExceptions not noisy
This commit is contained in:
parent
04147aadb1
commit
15b1328c0e
@ -228,8 +228,10 @@ public class MapManager {
|
||||
try {
|
||||
r.run();
|
||||
} catch (Exception x) {
|
||||
Log.severe("Exception during render job: " + r);
|
||||
x.printStackTrace();
|
||||
if (!(x instanceof InterruptedException)) { // Avoid shutdown noise
|
||||
Log.severe("Exception during render job: " + r);
|
||||
x.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -244,8 +246,10 @@ public class MapManager {
|
||||
try {
|
||||
command.run();
|
||||
} catch (Exception x) {
|
||||
Log.severe("Exception during render job: " + command);
|
||||
x.printStackTrace();
|
||||
if (!(x instanceof InterruptedException)) { // Avoid shutdown noise
|
||||
Log.severe("Exception during render job: " + command);
|
||||
x.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}, delay, unit);
|
||||
|
Loading…
Reference in New Issue
Block a user