Merge bitcoin-core/gui#884: Fix compatibility with -debuglogfile command-line option

c0d28c8f5b qt: 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 ACK c0d28c8f5b 💳
  pablomartin4btc:
    ACK c0d28c8f5b

Tree-SHA512: 0453b5f918e1831f6c6b4f04031959c391936e5ee6fc742a3d0189fce9c4dcf060ff2138f0cd15c93919a8bf750860c1c926159cad7a7f8a361833017f89ad76
This commit is contained in:
Hennadii Stepanov
2025-09-06 00:22:43 +01:00

View File

@@ -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))