mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 11:58:54 +00:00
epee: Don't set log file name when process path name isn't found
If process path name isn't found, then leave log file name blank. This also applies if a process name is found, but it's blank after removing a trailing dot extension.
This commit is contained in:
parent
f7c27f81af
commit
b5b0f0857a
@ -861,7 +861,8 @@ namespace log_space
|
|||||||
std::string::size_type a = m_default_log_file.rfind('.');
|
std::string::size_type a = m_default_log_file.rfind('.');
|
||||||
if ( a != std::string::npos )
|
if ( a != std::string::npos )
|
||||||
m_default_log_file.erase( a, m_default_log_file.size());
|
m_default_log_file.erase( a, m_default_log_file.size());
|
||||||
m_default_log_file += ".log";
|
if ( ! m_default_log_file.empty() )
|
||||||
|
m_default_log_file += ".log";
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user