Simplify logging output

This commit is contained in:
Reinhard Pointner 2017-04-02 01:59:30 +08:00
parent 83c1796cf9
commit 761a700db0
2 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ public final class Logging {
return () -> getMessage(null, t); return () -> getMessage(null, t);
} }
public static Supplier<String> cause(Object... elements) { public static Supplier<String> message(Object... elements) {
return () -> getMessage(elements); return () -> getMessage(elements);
} }

View File

@ -78,9 +78,9 @@ public class XattrMetaInfo {
// make file writable if necessary // make file writable if necessary
if (!f.canWrite()) { if (!f.canWrite()) {
if (f.setWritable(true)) { if (f.setWritable(true)) {
debug.fine(cause("Grant write permissions", f)); debug.fine(message("Grant write permissions", f));
} else { } else {
debug.warning(cause("Failed to grant write permissions", f)); debug.warning(message("Failed to grant write permissions", f));
} }
} }
return f; return f;