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

util.kerberos: Logging improved

This commit is contained in:
Игорь Чудов 2020-07-28 12:01:31 +04:00
parent 58a609f0bf
commit d776cbbc7a
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -22,6 +22,7 @@ import subprocess
from .util import get_machine_name
from .logging import slogm
from messages import message_with_code
def machine_kinit(cache_name=None):
@ -78,8 +79,8 @@ def check_krb_ticket():
logging.info(output)
result = True
except:
logging.error(slogm('Kerberos ticket check unsuccessful'))
logging.error(slogm(message_with_code('E14')))
logging.debug(slogm('Ticket check succeed'))
logging.debug(slogm(message_with_code('D17')))
return result