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

Added a new log number(D153) about saving script information

This commit is contained in:
Valery Sinelnikov 2022-03-22 15:24:31 +04:00 committed by Evgeny Sinelnikov
parent be0603e809
commit d5ecd040df
3 changed files with 5 additions and 1 deletions

View File

@ -660,6 +660,9 @@ msgstr "Не удалось найти настройки gsettings пользо
msgid "Configure user Group Policy loopback processing mode"
msgstr "Настройка режима обработки замыкания пользовательской групповой политики"
msgid "Saving information about script"
msgstr "Сохранение информации о скрипте"
# Debug_end
# Warning

View File

@ -256,6 +256,7 @@ def debug_code(code):
debug_ids[150] = 'Failed to found gsettings for machine'
debug_ids[151] = 'Failed to found user gsettings'
debug_ids[152] = 'Configure user Group Policy loopback processing mode'
debug_ids[153] = 'Saving information about script'
return debug_ids.get(code, 'Unknown debug code')

View File

@ -384,7 +384,7 @@ class sqlite_registry(registry):
logdata = dict()
logdata['script path'] = scrobj.path
logdata['sid'] = sid
print(logdata)
log('D153', logdata)
try:
self._add(scr_entry)
except Exception as exc: