Removed rest redundant Log.toLog(String, Throwable) when Class suffices

This commit is contained in:
Rsl1122 2018-02-07 18:56:53 +02:00
parent 57f3a518a0
commit e05574a0b1
5 changed files with 5 additions and 5 deletions

View File

@ -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);
}
});
}

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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;