diff src/hgrunner.cpp @ 694:7194ca023517

Omit authkey from debug log
author Chris Cannam
date Mon, 10 Dec 2018 15:20:01 +0000
parents 5b3bcb2d0943
children 646e48a0d3a5
line wrap: on
line diff
--- a/src/hgrunner.cpp	Mon Dec 10 15:04:52 2018 +0000
+++ b/src/hgrunner.cpp	Mon Dec 10 15:20:01 2018 +0000
@@ -618,7 +618,10 @@
 
     QString cmdline = action.executable;
     foreach (QString param, action.params) cmdline += " " + param;
-    DEBUG << "HgRunner: starting: " << cmdline << " with cwd "
+
+    QString reportable = cmdline;
+    reportable.replace(QRegExp("authkey=[^ ]*"), "authkey=<elided>");
+    DEBUG << "HgRunner: starting: " << reportable << " with cwd "
           << action.workingDir << endl;
 
     m_currentAction = action;