]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
resolve nullptr closure; put back to debug logs
authorgg <chown_tee@proton.me>
Mon, 12 Jan 2026 23:27:08 +0000 (18:27 -0500)
committergg <chown_tee@proton.me>
Mon, 12 Jan 2026 23:27:40 +0000 (18:27 -0500)
src/MainWindow.cpp
src/main.cpp

index f889316295f89ddc98863a6e484bb6c8cf95b356..e09378940f1069399d597a7fb476258789c6ccab 100644 (file)
@@ -656,7 +656,7 @@ void MainWindow::initOffline() {
 
     connect(m_wallet, &Wallet::heightsRefreshed, this, [this](bool success, quint64 daemonHeight, quint64 targetHeight) {
         if (conf()->get(Config::syncPaused).toBool()) {
-            qInfo() << "Heights refreshed (Paused): Daemon" << daemonHeight << "Target" << targetHeight;
+            qDebug() << "Heights refreshed (Paused): Daemon" << daemonHeight << "Target" << targetHeight;
             this->setPausedSyncStatus();
         }
     });
@@ -859,15 +859,15 @@ void MainWindow::onBalanceUpdated(quint64 balance, quint64 spendable) {
 }
 
 void MainWindow::setPausedSyncStatus() {
-    qWarning() << "setPausedSyncStatus called. Sync paused:" << conf()->get(Config::syncPaused).toBool();
+    qDebug() << "setPausedSyncStatus called. Sync paused:" << conf()->get(Config::syncPaused).toBool();
     QString tooltip;
     QString status = Utils::getPausedSyncStatus(m_wallet, m_nodes, &tooltip);
 
     // Log variables for debugging 149 vs 814k discrepancy
     if (m_wallet) {
-        qWarning() << "Paused Status Calc: WalletHeight:" << m_wallet->blockChainHeight()
-                   << "DaemonHeight:" << m_wallet->daemonBlockChainHeight()
-                   << "TargetHeight:" << m_wallet->daemonBlockChainTargetHeight();
+        qDebug() << "Paused Status Calc: WalletHeight:" << m_wallet->blockChainHeight()
+                 << "DaemonHeight:" << m_wallet->daemonBlockChainHeight()
+                 << "TargetHeight:" << m_wallet->daemonBlockChainTargetHeight();
     }
 
     this->setStatusText(status);
@@ -878,7 +878,7 @@ void MainWindow::setPausedSyncStatus() {
 void MainWindow::setStatusText(const QString &text, bool override, int timeout) {
     // Log to qWarning as requested for debugging
     if (text != m_statusText) {
-        qWarning() << "Setting status text:" << text;
+        qTrace() << "Setting status text:" << text;
     }
 
     if (override) {
@@ -990,7 +990,7 @@ void MainWindow::onMultiBroadcast(const QMap<QString, QString> &txHexMap) {
 }
 
 void MainWindow::onSyncStatus(quint64 height, quint64 target, bool daemonSync) {
-    qWarning() << "onSyncStatus: Height" << height << "Target" << target << "DaemonSync" << daemonSync;
+    qDebug() << "onSyncStatus: Height" << height << "Target" << target << "DaemonSync" << daemonSync;
     if (height >= (target - 1) && target > 0) {
         this->updateNetStats();
         this->setStatusText(QString("Synchronized (%1)").arg(QLocale().toString(height)));
index 03c9c0a7c2e902883e348b75fcec605f5b618060..48aa561ce793f1784df7120e7e9c2aa6cc9f29f7 100644 (file)
@@ -221,6 +221,6 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) {
     wm->setEventFilter(&filter);
 
     int exitCode = Application::exec();
-    qWarning() << "Application::exec() returned with exit code:" << exitCode;
+    qInstallMessageHandler(nullptr);
     return exitCode;
 }