diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2017-06-21 03:16:50 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-06-21 03:16:50 +0200 |
commit | 7b2fb1593cb35027876069ee170dbb57f3bbdd32 (patch) | |
tree | 15a0caf111bb18ae178ad8072ce88e8415aea578 /src/leap/bitmask/vpn/helpers/osx | |
parent | 86ba6785ac0bd43677fee3dbe79caeea10e53c6b (diff) |
[style] reduce syslog verbosity
Diffstat (limited to 'src/leap/bitmask/vpn/helpers/osx')
-rwxr-xr-x | src/leap/bitmask/vpn/helpers/osx/bitmask-helper | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/leap/bitmask/vpn/helpers/osx/bitmask-helper b/src/leap/bitmask/vpn/helpers/osx/bitmask-helper index 7795ba2b..32201aab 100755 --- a/src/leap/bitmask/vpn/helpers/osx/bitmask-helper +++ b/src/leap/bitmask/vpn/helpers/osx/bitmask-helper @@ -192,16 +192,16 @@ def handle_command(sock): # syslog.syslog(syslog.LOG_WARNING, 'call: %s' % (str(cmd_call))) try: if cmd_call: - syslog.syslog( - syslog.LOG_WARNING, 'GOT "%s"' % (command)) + # syslog.syslog( + # syslog.LOG_WARNING, 'GOT "%s"' % (command)) cmd, args = cmd_call if args: cmd = partial(cmd, *args) # TODO Use a MUTEX in here result = cmd() - syslog.syslog(syslog.LOG_WARNING, "Executed") - syslog.syslog(syslog.LOG_WARNING, "Result: %s" % (str(result))) + syslog.syslog(syslog.LOG_WARNING, "%s result: %s" % ( + command, str(result))) if result == 'YES': sock.sendall("%s: YES\n" % command) elif result == 'NO': @@ -253,8 +253,11 @@ def openvpn_start(*args): global openvpn_proc # TODO sanitize options openvpn_proc = subprocess.Popen(cmd, shell=False, bufsize=-1) + + # XXX DEBUG ------------------------------------------------- # try: - # result = subprocess.check_output(cmd, shell=False, stderr=subprocess.STDOUT) + # result = subprocess.check_output( + # cmd, shell=False, stderr=subprocess.STDOUT) # except Exception as exc: # syslog.syslog(syslog.LOG_WARNING, exc.output) |