Skip to content

Commit

Permalink
Only complain about interruptions if debug is enabled
Browse files Browse the repository at this point in the history
because peoples servers are freezing and that causes the interruption, and people keep thinking its ajlb
  • Loading branch information
ajgeiss0702 committed Jan 20, 2025
1 parent ae3f323 commit 5a04240
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public void search(BoardSign sign, String name, UUID id) {
}
} catch(ExecutionException | InterruptedException e) {
if(plugin.isShuttingDown()) return;
plugin.getLogger().log(Level.WARNING, "Interupted while scanning for armorstand:", e);
if(Debug.isDebug()) plugin.getLogger().log(Level.WARNING, "Interrupted while scanning for armorstand:", e);
} catch(TimeoutException ignored) {}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public boolean isPlaced() throws ExecutionException, InterruptedException, Timeo
setSign().get();
} catch (InterruptedException | ExecutionException e) {
if(plugin.isShuttingDown()) return false;
plugin.getLogger().log(Level.SEVERE, "Interupted while trying to get sign data", e);
if(Debug.isDebug()) plugin.getLogger().log(Level.SEVERE, "Interrupted while trying to get sign data", e);
}
}
return placed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public void updateSign(BoardSign sign) {
if(!sign.isPlaced()) return;
} catch (ExecutionException | InterruptedException | TimeoutException e) {
if(plugin.isShuttingDown()) return;
plugin.getLogger().log(Level.SEVERE, "Interrupted while trying to check if sign is placed:", e);
if(Debug.isDebug()) plugin.getLogger().log(Level.SEVERE, "Interrupted while trying to check if sign is placed:", e);
}

String name = "";
Expand Down

0 comments on commit 5a04240

Please sign in to comment.