mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Unix: log shell and call commands at INFO (Closes ProgVal/Limnoria#929)
This commit is contained in:
parent
104b3efd44
commit
63a7a03498
@ -395,6 +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,
|
||||||
|
irc.network))
|
||||||
args = shlex.split(text)
|
args = shlex.split(text)
|
||||||
try:
|
try:
|
||||||
with open(os.devnull) as null:
|
with open(os.devnull) as null:
|
||||||
@ -425,6 +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,
|
||||||
|
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