From 336637a7a47f7bffe0ea2c5427c377c7a120af38 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Thu, 28 May 2020 11:40:22 +0200 Subject: [PATCH] SetupLog : ease changing manually the default level In setup no conf file available so the log_level_min config option cannot be read A solution is to manually change this constant --- core/log.class.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/log.class.inc.php b/core/log.class.inc.php index 1590d26e3b..dfb0fa3e62 100644 --- a/core/log.class.inc.php +++ b/core/log.class.inc.php @@ -686,6 +686,12 @@ abstract class LogAPI class SetupLog extends LogAPI { const CHANNEL_DEFAULT = 'SetupLog'; + /** + * @inheritDoc + * + * As this object is used during setup, without any conf file available, customizing the level can be done by changing this constant ! + */ + const LEVEL_DEFAULT = self::LEVEL_INFO; protected static $m_oFileLog = null; }