Browse Source

[Log] create logfile even if loglevel is "none"

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1515/head
R4SAS 5 years ago
parent
commit
e6fdf5ad8d
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 1
      libi2pd/Log.cpp

1
libi2pd/Log.cpp

@ -199,7 +199,6 @@ namespace log { @@ -199,7 +199,6 @@ namespace log {
void Log::SendTo (const std::string& path)
{
if (m_LogStream) m_LogStream = nullptr; // close previous
if (m_MinLevel == eLogNone) return;
auto flags = std::ofstream::out | std::ofstream::app;
auto os = std::make_shared<std::ofstream> (path, flags);
if (os->is_open ())

Loading…
Cancel
Save