public void AddVerboseMessage(string message, params object[] args) { if (m_parent != null) { m_parent.AddVerboseMessage(message, args); } else { lock (Logging.Log.Lock) { if (m_is_reporting) { return; } try { m_is_reporting = true; Logging.Log.WriteMessage(string.Format(message, args), Duplicati.Library.Logging.LogMessageType.Profiling, null); if (MessageSink != null) { MessageSink.VerboseEvent(message, args); } } finally { m_is_reporting = false; } } } }
public void AddVerboseMessage(string message, params object[] args) { if (m_parent != null) { m_parent.AddVerboseMessage(message, args); } else { if (Logging.Log.LogLevel == Duplicati.Library.Logging.LogMessageType.Profiling || VerboseOutput) { Logging.Log.WriteMessage(string.Format(message, args), Duplicati.Library.Logging.LogMessageType.Information); } if (MessageSink != null) { MessageSink.VerboseEvent(message, args); } } }