diff --git a/source/net/filebot/Logging.java b/source/net/filebot/Logging.java index af5319e6..469a16d8 100644 --- a/source/net/filebot/Logging.java +++ b/source/net/filebot/Logging.java @@ -109,7 +109,7 @@ public final class Logging { }; } - public static Supplier cause(String m, Throwable t) { + public static Supplier cause(Object m, Throwable t) { return () -> getMessage(m, t); } @@ -121,7 +121,7 @@ public final class Logging { return () -> getMessage(elements); } - private static String getMessage(String m, Throwable t) { + private static String getMessage(Object m, Throwable t) { // try to unravel stacked exceptions if (t.getCause() != null && (t instanceof RuntimeException || t instanceof ExecutionException)) { return getMessage(m, t.getCause());