Unix: update logging

This commit is contained in:
James Lu 2014-12-13 11:19:18 -08:00
parent 63a7a03498
commit d5b7a27685
1 changed files with 4 additions and 4 deletions

View File

@ -395,8 +395,8 @@ class Unix(callbacks.Plugin):
you don't run anything that will spamify your channel or that you don't run anything that will spamify your channel or that
will bring your machine to its knees. will bring your machine to its knees.
""" """
self.log.info('Unix: running command "%s" for %s/%s' % (text, msg.nick, self.log.info('Unix: running command "%s" for %s/%s', text, msg.nick,
irc.network)) irc.network)
args = shlex.split(text) args = shlex.split(text)
try: try:
with open(os.devnull) as null: with open(os.devnull) as null:
@ -427,8 +427,8 @@ class Unix(callbacks.Plugin):
you don't run anything that will spamify your channel or that you don't run anything that will spamify your channel or that
will bring your machine to its knees. will bring your machine to its knees.
""" """
self.log.info('Unix: running command "%s" for %s/%s' % (text, msg.nick, self.log.info('Unix: running command "%s" for %s/%s', text, msg.nick,
irc.network)) irc.network)
try: try:
with open(os.devnull) as null: with open(os.devnull) as null:
inst = subprocess.Popen(text, inst = subprocess.Popen(text,