log to logifile

This commit is contained in:
Jakobus Schürz 2019-08-01 23:10:32 +02:00
parent 7438aedf64
commit 1fc6d57c0d

View file

@ -23,8 +23,10 @@ def serve_principal(sshUser, principals):
if '@' in sshUser:
for user in [ sshUser, sshUser.split('@')[0] ]:
log.debug(TEMPLATE % dict(user=user, principals=principals))
print TEMPLATE % dict(user=user, principals=principals)
else:
log.debug(TEMPLATE % dict(user=user, principals=principals))
print TEMPLATE % dict(user=sshUser, principals=principals)