diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2022-02-05 19:36:33 +0100 |
---|---|---|
committer | Pavol Rusnak <pavol@rusnak.io> | 2022-03-02 12:09:27 +0100 |
commit | 60aa179d8f9a675efa2d78eaadc09e3ba450f50f (patch) | |
tree | 09daad1356a504a3efeb083d91ca0f6b45dac053 /src/init | |
parent | 5b946edd73640c6ecdfb4cbac1d4351e634678dc (diff) |
Use GetPathArg where possible
Co-authored-by: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
Diffstat (limited to 'src/init')
-rw-r--r-- | src/init/common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init/common.cpp b/src/init/common.cpp index 38c60366e3..688471b35d 100644 --- a/src/init/common.cpp +++ b/src/init/common.cpp @@ -81,7 +81,7 @@ void AddLoggingArgs(ArgsManager& argsman) void SetLoggingOptions(const ArgsManager& args) { LogInstance().m_print_to_file = !args.IsArgNegated("-debuglogfile"); - LogInstance().m_file_path = AbsPathForConfigVal(fs::PathFromString(args.GetArg("-debuglogfile", DEFAULT_DEBUGLOGFILE))); + LogInstance().m_file_path = AbsPathForConfigVal(args.GetPathArg("-debuglogfile", DEFAULT_DEBUGLOGFILE)); LogInstance().m_print_to_console = args.GetBoolArg("-printtoconsole", !args.GetBoolArg("-daemon", false)); LogInstance().m_log_timestamps = args.GetBoolArg("-logtimestamps", DEFAULT_LOGTIMESTAMPS); LogInstance().m_log_time_micros = args.GetBoolArg("-logtimemicros", DEFAULT_LOGTIMEMICROS); |