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:
parent
99c7a305de
commit
bc8b6369c2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user