diff --git a/src/tl/tl/tlLog.cc b/src/tl/tl/tlLog.cc index 4fcd7226c..eb680e14c 100644 --- a/src/tl/tl/tlLog.cc +++ b/src/tl/tl/tlLog.cc @@ -49,18 +49,22 @@ static int default_verbosity () return verbosity; } -static int m_verbosity_level = default_verbosity (); +static int &verbosity_level () +{ + static int level = default_verbosity (); + return level; +} void verbosity (int level) { - m_verbosity_level = level; + verbosity_level () = level; } int verbosity () { - return m_verbosity_level; + return verbosity_level (); } // ------------------------------------------------