mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fixes #681
This commit is contained in:
parent
839eaf7dae
commit
a4b0b046a9
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
|||
import os
|
||||
import re
|
||||
import errno
|
||||
import logging
|
||||
from glob import iglob
|
||||
|
||||
from moulinette.core import MoulinetteError
|
||||
|
@ -340,7 +341,7 @@ def hook_exec(path, args=None, raise_on_error=False, no_trace=False,
|
|||
for k, v in env.items()]), cmd)
|
||||
command.append(cmd.format(script=cmd_script, args=cmd_args))
|
||||
|
||||
if logger.isEnabledFor(log.DEBUG):
|
||||
if logger.isEnabledFor(logging.DEBUG):
|
||||
logger.info(m18n.n('executing_command', command=' '.join(command)))
|
||||
else:
|
||||
logger.info(m18n.n('executing_script', script=path))
|
||||
|
|
Loading…
Add table
Reference in a new issue