aboutsummaryrefslogtreecommitdiff
path: root/src/logging.h
diff options
context:
space:
mode:
authorJim Posen <jimpo@coinbase.com>2018-04-20 01:11:44 -0700
committerJim Posen <jimpo@coinbase.com>2018-04-29 14:37:19 -0700
commit8c2d695c4a45bdd9378c7970b0fcba6e1efc01f9 (patch)
tree43b04976c81df286c18c22e67d077bed78fcd087 /src/logging.h
parent8e7b961388920144993d0bd56d93f89e5c60fbff (diff)
util: Store debug log file path in BCLog::Logger member.
This breaks the cyclic between logging and util.
Diffstat (limited to 'src/logging.h')
-rw-r--r--src/logging.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logging.h b/src/logging.h
index 249d5debef..1f2be6016a 100644
--- a/src/logging.h
+++ b/src/logging.h
@@ -77,11 +77,12 @@ namespace BCLog {
public:
bool m_print_to_console = false;
- bool m_print_to_file = true;
+ bool m_print_to_file = false;
bool m_log_timestamps = DEFAULT_LOGTIMESTAMPS;
bool m_log_time_micros = DEFAULT_LOGTIMEMICROS;
+ fs::path m_file_path;
std::atomic<bool> m_reopen_file{false};
/** Send a string to the log output */
@@ -90,7 +91,6 @@ namespace BCLog {
/** Returns whether logs will be written to any output */
bool Enabled() const { return m_print_to_console || m_print_to_file; }
- fs::path GetDebugLogPath() const;
bool OpenDebugLog();
void ShrinkDebugFile();