From f43fa5878f7aa85afa2e26adc2169d8c297ea866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Fibich?= Date: Wed, 19 Jul 2023 15:35:10 +0200 Subject: [PATCH] PropertyAction log not find properties file without trace. The trace with java.io.FileNotFoundException is not usefull as it contains no additional information and only increases the log size. In qos-ch/logback this is implemented this way as well. See https://github.com/qos-ch/logback/blob/master/logback-core/src/main/java/ch/qos/logback/core/model/processor/PropertyModelHandler.java#L51 --- .../java/ch/qos/logback/core/joran/action/PropertyAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logback-android/src/main/java/ch/qos/logback/core/joran/action/PropertyAction.java b/logback-android/src/main/java/ch/qos/logback/core/joran/action/PropertyAction.java index eb67809152..f47355a97c 100644 --- a/logback-android/src/main/java/ch/qos/logback/core/joran/action/PropertyAction.java +++ b/logback-android/src/main/java/ch/qos/logback/core/joran/action/PropertyAction.java @@ -74,7 +74,7 @@ public void begin(InterpretationContext ec, String localName, FileInputStream istream = new FileInputStream(file); loadAndSetProperties(ec, istream, scope); } catch (FileNotFoundException e) { - addError("Could not find properties file [" + file + "].", e); + addError("Could not find properties file [" + file + "]."); } catch (IOException e1) { addError("Could not read properties file [" + file + "].", e1); }