From 3bd0aa2bc6eb23e241143846bb7d72d8e0d3514a Mon Sep 17 00:00:00 2001 From: Alexander Shavrov Date: Sat, 28 Oct 2023 17:05:13 +0300 Subject: [PATCH] Update logger --- .../com/wingmann/saqra/log/ConsoleLogger.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/wingmann/saqra/log/ConsoleLogger.java b/src/main/java/com/wingmann/saqra/log/ConsoleLogger.java index 2541edd..2919058 100644 --- a/src/main/java/com/wingmann/saqra/log/ConsoleLogger.java +++ b/src/main/java/com/wingmann/saqra/log/ConsoleLogger.java @@ -4,15 +4,17 @@ public class ConsoleLogger implements Logger { private enum PrintType { - LOG, - ERROR; - - @Override - public String toString() { - if (this == PrintType.LOG) { + LOG { + @Override + public String toString() { return "exec"; } - return "error"; + }, + ERROR { + @Override + public String toString() { + return "error"; + } } }