mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-30 02:15:54 +02:00
qt: Fix compatibility with -debuglogfile command-line option
This change avoids hardcoding the "debug.log" filename, ensuring compatibility with custom filenames provided via the `-debuglogfile` command-line option.
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