mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
Merge bitcoin-core/gui#884: Fix compatibility with -debuglogfile command-line option
c0d28c8f5bqt: Fix compatibility with `-debuglogfile` command-line option (Hennadii Stepanov) Pull request description: This change avoids hardcoding the "debug.log" filename, ensuring compatibility with custom filenames provided via the `-debuglogfile` command-line option. ACKs for top commit: maflcko: tested ACKc0d28c8f5b💳 pablomartin4btc: ACKc0d28c8f5bTree-SHA512: 0453b5f918e1831f6c6b4f04031959c391936e5ee6fc742a3d0189fce9c4dcf060ff2138f0cd15c93919a8bf750860c1c926159cad7a7f8a361833017f89ad76
This commit is contained in:
@@ -435,7 +435,7 @@ void handleCloseWindowShortcut(QWidget* w)
|
||||
|
||||
void openDebugLogfile()
|
||||
{
|
||||
fs::path pathDebug = gArgs.GetDataDirNet() / "debug.log";
|
||||
fs::path pathDebug = LogInstance().m_file_path;
|
||||
|
||||
/* Open debug.log with the associated application */
|
||||
if (fs::exists(pathDebug))
|
||||
|
||||
Reference in New Issue
Block a user