Obscure password information when we log URLs.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@70 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Michael Bayne
2006-11-06 23:57:45 +00:00
parent 434c5f86c2
commit 04a833f169
@@ -80,7 +80,11 @@ public class BrowserUtil
cmd = new String[] { genagent, url.toString() };
}
log.info("Browsing URL [cmd=" + StringUtil.join(cmd, " ") + "].");
// obscure any password information
String logcmd = StringUtil.join(cmd, " ");
logcmd = logcmd.replaceAll("password=[^&]*", "password=XXX");
log.info("Browsing URL [cmd=" + logcmd + "].");
try {
Process process = Runtime.getRuntime().exec(cmd);
BrowserTracker tracker = new BrowserTracker(process, url, listener);