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-29 17:34:16 +04:00
parent 99c7a305de
commit bc8b6369c2
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -17,12 +17,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import logging
import subprocess
from .util import get_machine_name
from .logging import slogm
from messages import message_with_code
from .logging import log
def machine_kinit(cache_name=None):
@ -79,8 +77,8 @@ def check_krb_ticket():
logging.info(output)
result = True
except:
logging.error(slogm(message_with_code('E14')))
log('E14')
logging.debug(slogm(message_with_code('D17')))
log('D17')
return result