mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
Unix: Update logging again
This commit is contained in:
parent
d5b7a27685
commit
a38ab5ea89
@ -396,7 +396,7 @@ class Unix(callbacks.Plugin):
|
|||||||
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:
|
||||||
@ -428,7 +428,7 @@ class Unix(callbacks.Plugin):
|
|||||||
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user