diff --git a/irc3/plugins/shell_command.py b/irc3/plugins/shell_command.py index abd027a..6bbdd42 100644 --- a/irc3/plugins/shell_command.py +++ b/irc3/plugins/shell_command.py @@ -108,14 +108,13 @@ async def meth(*args, **kwargs): async def shell_command(self, command, mask, target, args, **kwargs): env = os.environ.copy() env['IRC3_COMMAND_ARGS'] = ' '.join(args['']) - self.log.debug('Running command %s' % command) + self.log.debug('Running command: $ %s' % command) proc = await asyncio.create_subprocess_shell( command, shell=True, env=env, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.STDOUT) await proc.wait() lines = await proc.stdout.read() - self.log.debug('Running command %s' % lines) if not isinstance(lines, str): lines = lines.decode('utf8') return lines.split('\n')