OSDN Git Service

[libcalamares] Reduce log spam when running commands
authorAdriaan de Groot <groot@kde.org>
Tue, 21 Sep 2021 22:58:31 +0000 (00:58 +0200)
committerAdriaan de Groot <groot@kde.org>
Tue, 21 Sep 2021 22:58:31 +0000 (00:58 +0200)
src/libcalamares/utils/CalamaresUtilsSystem.cpp

index df578a8..d2c0a6c 100644 (file)
@@ -169,7 +169,7 @@ System::runCommand( System::RunLocation location,
         }
     }
 
-    cDebug() << "Running" << program << RedactedList( arguments );
+    cDebug() << Logger::SubEntry << "Running" << program << RedactedList( arguments );
     process.start();
     if ( !process.waitForStarted() )
     {
@@ -208,10 +208,6 @@ System::runCommand( System::RunLocation location,
         {
             cDebug() << Logger::SubEntry << "Finished. Exit code:" << r << "output:\n" << Logger::NoQuote << output;
         }
-        else
-        {
-            cDebug() << Logger::SubEntry << "Finished. Exit code:" << r;
-        }
     }
     else  // if ( r != 0 )
     {