aboutsummaryrefslogtreecommitdiff
path: root/src/logging.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge #13149: Handle unsuccessful fseek(...):sWladimir J. van der Laan2018-05-071-1/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | 20ce5af Print a log message if we fail to shrink the debug log file (practicalswift) 29c9bdc Handle unsuccessful fseek(...):s (practicalswift) Pull request description: Handle unsuccessful `fseek(...)`:s. **Note to reviewers:** What is the most appropriate course of actions for each of these unsuccessful `fseek(...)`:s? Tree-SHA512: 5b3d82dbdd15d434d3f08dcb4df62888da4df8541d2586f56a4e529083005f6782c39e10645acd1ec403da83061bbfd8dbf2dddc66e09268d410ad0918c61876
| * Print a log message if we fail to shrink the debug log filepracticalswift2018-05-031-0/+1
| |
| * Handle unsuccessful fseek(...):spracticalswift2018-05-021-1/+4
| |
* | logging: remove unused return value from LogPrintStrpracticalswift2018-05-021-8/+4
| | | | | | | | | | | | | | | | | | `LogPrintStr` returns the number of characters printed. This number is doubled if both logging to console and logging to file is enabled. As the return value is never used, I've opted to remove it instead of try to fix it. Credit: @laanwj
* | logging: Fix potential use-after-free in LogPrintStr(...)practicalswift2018-05-021-2/+5
|/
* util: Store debug log file path in BCLog::Logger member.Jim Posen2018-04-291-15/+10
| | | | This breaks the cyclic between logging and util.
* scripted-diff: Rename BCLog::Logger member variables.Jim Posen2018-04-291-27/+27
| | | | | | | | | | | | | | | -BEGIN VERIFY SCRIPT- sed -i "s/fileout/m_fileout/" src/logging.h src/logging.cpp sed -i "s/mutexDebugLog/m_file_mutex/" src/logging.h src/logging.cpp sed -i "s/vMsgsBeforeOpenLog/m_msgs_before_open/" src/logging.h src/logging.cpp sed -i "s/logCategories/m_categories/" src/logging.h src/logging.cpp sed -i "s/fPrintToConsole/m_print_to_console/" src/logging.h src/logging.cpp src/init.cpp sed -i "s/fPrintToDebugLog/m_print_to_file/" src/logging.h src/logging.cpp src/init.cpp src/test/test_bitcoin.cpp src/bench/bench_bitcoin.cpp sed -i "s/fLogTimestamps/m_log_timestamps/" src/logging.h src/logging.cpp src/init.cpp sed -i "s/fLogTimeMicros/m_log_time_micros/" src/logging.h src/logging.cpp src/init.cpp sed -i "s/fReopenDebugLog/m_reopen_file/" src/logging.h src/logging.cpp src/init.cpp sed -i "s/fStartedNewLine/m_started_new_line/" src/logging.h src/logging.cpp -END VERIFY SCRIPT-
* util: Refactor GetLogCategory.Jim Posen2018-04-291-19/+32
| | | | | Changing parameter types from pointers to references and uint32_t to BCLog::LogFlags simplies calling code.
* util: Encapsulate logCategories within BCLog::Logger.Jim Posen2018-04-271-3/+20
|
* util: Move debug file management functions into Logger.Jim Posen2018-04-271-50/+9
|
* util: Establish global logger object.Jim Posen2018-04-271-17/+20
| | | | | The object encapsulates logging configuration, and in a later commit, set up routines will also be moved into the class.
* MOVEONLY: Move logging code from util.{h,cpp} to new files.Jim Posen2018-04-181-0/+283