diff options
author | Adam Weiss <adam@signal11.com> | 2015-05-15 15:31:14 -0400 |
---|---|---|
committer | Adam Weiss <adam@signal11.com> | 2015-07-06 21:54:31 -0400 |
commit | 27d760580456d206c5a02ef29797f296f510099c (patch) | |
tree | e8e592a71e2c2149fa8a476a86532e04f18688b6 /src/util.h | |
parent | 086cb336cd8ac0b2a7ad9ff0544c014569c7db38 (diff) |
Buffer log messages and explicitly open logs
Prevents stomping on debug logs in datadirs that are locked by other
instances and lost parameter interaction messages that can get wiped by
ShrinkDebugFile().
The log is now opened explicitly and all emitted messages are buffered
until this open occurs. The version message and log cut have also been
moved to the earliest possible sensible location.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 6019e25015..afc9a378bb 100644 --- a/src/util.h +++ b/src/util.h @@ -125,6 +125,7 @@ void ReadConfigFile(std::map<std::string, std::string>& mapSettingsRet, std::map boost::filesystem::path GetSpecialFolderPath(int nFolder, bool fCreate = true); #endif boost::filesystem::path GetTempPath(); +void OpenDebugLog(); void ShrinkDebugFile(); void runCommand(const std::string& strCommand); |