diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-08-17 10:21:33 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-08-17 10:21:34 +0200 |
commit | 49df0e6f50add6cc7787e6ad9a6c3c37bc6472cb (patch) | |
tree | d77d2297315cb2de6e2e5f5386b9769f9ef2cf2c /contrib/epee/include/misc_log_ex.h | |
parent | Merge pull request #377 (diff) | |
parent | simplewallet: Use default log file name when executable's file path is unknown (diff) | |
download | monero-49df0e6f50add6cc7787e6ad9a6c3c37bc6472cb.tar.xz |
Merge pull request #378
7c4d6f1 simplewallet: Use default log file name when executable's file path is unknown (warptangent)
b5b0f08 epee: Don't set log file name when process path name isn't found (warptangent)
Diffstat (limited to 'contrib/epee/include/misc_log_ex.h')
-rw-r--r-- | contrib/epee/include/misc_log_ex.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/epee/include/misc_log_ex.h b/contrib/epee/include/misc_log_ex.h index 42adc7c43..2adac7f2f 100644 --- a/contrib/epee/include/misc_log_ex.h +++ b/contrib/epee/include/misc_log_ex.h @@ -861,7 +861,8 @@ namespace log_space std::string::size_type a = m_default_log_file.rfind('.'); if ( a != std::string::npos ) 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; } |