1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

shortcut applier logging improved

This commit is contained in:
Игорь Чудов 2020-06-29 20:03:45 +04:00
parent 1be13ea8ed
commit e4f17f2704
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -109,7 +109,10 @@ class shortcut_applier(applier_frontend):
def apply(self):
if self.__module_enabled:
logging.debug(slogm('Running Shortcut applier for machine'))
self.run()
else:
logging.debug(slogm('Shortcut applier for machine will not be started'))
class shortcut_applier_user(applier_frontend):
__module_name = 'ShortcutsApplierUser'
@ -133,9 +136,15 @@ class shortcut_applier_user(applier_frontend):
def user_context_apply(self):
if self.__module_enabled:
logging.debug(slogm('Running Shortcut applier for user in user context'))
self.run()
else:
logging.debug(slogm('Shortcut applier for user in user context will not be started'))
def admin_context_apply(self):
if self.__module_enabled:
logging.debug(slogm('Running Shortcut applier for user in administrator context'))
self.run()
else:
logging.debug(slogm('Shortcut applier for user in administrator context will not be started'))