From 761a700db0ef7c9119e5cc46863698c1638b5191 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 2 Apr 2017 01:59:30 +0800 Subject: [PATCH] Simplify logging output --- source/net/filebot/Logging.java | 2 +- source/net/filebot/media/XattrMetaInfo.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/net/filebot/Logging.java b/source/net/filebot/Logging.java index 463f5e47..757050e6 100644 --- a/source/net/filebot/Logging.java +++ b/source/net/filebot/Logging.java @@ -107,7 +107,7 @@ public final class Logging { return () -> getMessage(null, t); } - public static Supplier cause(Object... elements) { + public static Supplier message(Object... elements) { return () -> getMessage(elements); } diff --git a/source/net/filebot/media/XattrMetaInfo.java b/source/net/filebot/media/XattrMetaInfo.java index 2c434e2a..4e4dbeee 100644 --- a/source/net/filebot/media/XattrMetaInfo.java +++ b/source/net/filebot/media/XattrMetaInfo.java @@ -78,9 +78,9 @@ public class XattrMetaInfo { // make file writable if necessary if (!f.canWrite()) { if (f.setWritable(true)) { - debug.fine(cause("Grant write permissions", f)); + debug.fine(message("Grant write permissions", f)); } else { - debug.warning(cause("Failed to grant write permissions", f)); + debug.warning(message("Failed to grant write permissions", f)); } } return f;