changeset 694:7194ca023517

Omit authkey from debug log
author Chris Cannam
date Mon, 10 Dec 2018 15:20:01 +0000
parents b939bdac0643
children bbf4696f65e3
files src/hgrunner.cpp
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
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;