1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-01-22 18:04:09 +03:00

plugin.adp: Logging improved

This commit is contained in:
Игорь Чудов 2020-07-28 12:10:01 +04:00
parent 70886bd605
commit 6f6612862d
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -28,11 +28,11 @@ class adp:
def __init__(self):
if not is_rpm_installed('adp'):
raise PluginInitError(message_with_code('W5'))
logging.info(slogm(message_with_code('I8')))
logging.info(slogm(message_with_code('D4')))
def run(self):
try:
logging.info(slogm(message_with_code('I9')))
logging.info(slogm(message_with_code('D5')))
subprocess.call(['/usr/bin/adp', 'fetch'])
subprocess.call(['/usr/bin/adp', 'apply'])
except Exception as exc: