mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-05 02:09:50 +01:00
Removed rest redundant Log.toLog(String, Throwable) when Class suffices
This commit is contained in:
parent
57f3a518a0
commit
e05574a0b1
@ -93,7 +93,7 @@ public class AnalyzeCommand extends SubCommand {
|
||||
sender.sendMessage(ChatColor.YELLOW + "[Plan] You might not have a web user, use /plan register <password>");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log.toLog(this.getClass() + getName(), e);
|
||||
Log.toLog(this.getClass(), e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ public class ManageBackupCommand extends SubCommand {
|
||||
ManageUtils.backup(args[0], database);
|
||||
sender.sendMessage(Locale.get(Msg.MANAGE_INFO_COPY_SUCCESS).toString());
|
||||
} catch (Exception e) {
|
||||
Log.toLog(this.getClass() + " " + getTaskName(), e);
|
||||
Log.toLog(this.getClass(), e);
|
||||
sender.sendMessage(Locale.get(Msg.MANAGE_INFO_FAIL).toString());
|
||||
} finally {
|
||||
this.cancel();
|
||||
|
@ -84,7 +84,7 @@ public class ManageMoveCommand extends SubCommand {
|
||||
boolean movedToCurrentDatabase = Verify.equalsIgnoreCase(toDatabase.getConfigName(), Database.getActive().getConfigName());
|
||||
Condition.isTrue(!movedToCurrentDatabase, Locale.get(Msg.MANAGE_INFO_CONFIG_REMINDER).toString(), sender);
|
||||
} catch (Exception e) {
|
||||
Log.toLog(this.getClass() + " " + getTaskName(), e);
|
||||
Log.toLog(this.getClass(), e);
|
||||
sender.sendMessage(Locale.get(Msg.MANAGE_INFO_FAIL).toString());
|
||||
} finally {
|
||||
this.cancel();
|
||||
|
@ -92,7 +92,7 @@ public class ManageRestoreCommand extends SubCommand {
|
||||
|
||||
sender.sendMessage(Locale.get(Msg.MANAGE_INFO_COPY_SUCCESS).toString());
|
||||
} catch (Exception e) {
|
||||
Log.toLog(this.getClass() + " " + getTaskName(), e);
|
||||
Log.toLog(this.getClass(), e);
|
||||
sender.sendMessage(Locale.get(Msg.MANAGE_INFO_FAIL).toString());
|
||||
} finally {
|
||||
this.cancel();
|
||||
|
@ -100,7 +100,7 @@ public class HookHandler implements SubSystem {
|
||||
} catch (Exception e) {
|
||||
String sourcePlugin = pluginData.getSourcePlugin();
|
||||
Log.error("PluginData caused exception: " + sourcePlugin);
|
||||
Log.toLog(this.getClass() + " " + sourcePlugin, e);
|
||||
Log.toLog(this.getClass().getName() + " " + sourcePlugin, e);
|
||||
}
|
||||
}
|
||||
return containers;
|
||||
|
Loading…
Reference in New Issue
Block a user