Simplify logging output
This commit is contained in:
parent
83c1796cf9
commit
761a700db0
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue