From 5cec6f516293368c865103df213b0be483dbefb8 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 17 Feb 2019 18:39:21 +0700 Subject: [PATCH] Make sure "WARNING: Owner failed to convert data" doesn't fill up the error.log with useless messages that seem to happen all the time, don't matter, and are just confusing for new users. --- source/net/filebot/ui/transfer/TransferablePolicy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/ui/transfer/TransferablePolicy.java b/source/net/filebot/ui/transfer/TransferablePolicy.java index cae6822a..b9723d19 100644 --- a/source/net/filebot/ui/transfer/TransferablePolicy.java +++ b/source/net/filebot/ui/transfer/TransferablePolicy.java @@ -29,7 +29,7 @@ public abstract class TransferablePolicy { // just assume that the transferable will be accepted, accept will be called in importData again anyway return true; } catch (Exception e) { - debug.log(Level.WARNING, e.getMessage(), e); + debug.log(Level.FINEST, e, e::getMessage); return false; } } @@ -43,7 +43,7 @@ public abstract class TransferablePolicy { return true; } } catch (Exception e) { - debug.log(Level.WARNING, e.getMessage(), e); + debug.log(Level.WARNING, e, e::getMessage); } // transferable was not accepted, or transfer failed