aboutsummaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
authorRyan Ofsky <ryan@ofsky.org>2023-02-27 14:14:58 -0500
committerRyan Ofsky <ryan@ofsky.org>2023-02-27 14:14:58 -0500
commitb20b34f5b33230fe253c81008496bd9b13fd6ecf (patch)
treed4e44e329fe5163827cd6d0c1f574747c1bed88d /src/init
parent6758bd7de75d65d08f9f588378b92a56cc79a49e (diff)
downloadbitcoin-b20b34f5b33230fe253c81008496bd9b13fd6ecf.tar.xz
refactor: Use new GetConfigFilePath function
New function was introduced by willcl-ark <will@256k1.dev> in commit 56e370fbb9413260723c598048392219b1055ad0 from https://github.com/bitcoin/bitcoin/pull/27073 and removes some duplicate code.
Diffstat (limited to 'src/init')
-rw-r--r--src/init/common.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init/common.cpp b/src/init/common.cpp
index e1a37d7db9..f6f97f3914 100644
--- a/src/init/common.cpp
+++ b/src/init/common.cpp
@@ -121,7 +121,7 @@ bool StartLogging(const ArgsManager& args)
LogPrintf("Using data directory %s\n", fs::PathToString(gArgs.GetDataDirNet()));
// Only log conf file usage message if conf file actually exists.
- fs::path config_file_path = GetConfigFile(args.GetPathArg("-conf", BITCOIN_CONF_FILENAME));
+ fs::path config_file_path = args.GetConfigFilePath();
if (fs::exists(config_file_path)) {
LogPrintf("Config file: %s\n", fs::PathToString(config_file_path));
} else if (args.IsArgSet("-conf")) {