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:
parent
70886bd605
commit
6f6612862d
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user