log to logifile
This commit is contained in:
parent
7438aedf64
commit
1fc6d57c0d
1 changed files with 2 additions and 0 deletions
|
@ -23,8 +23,10 @@ def serve_principal(sshUser, principals):
|
||||||
|
|
||||||
if '@' in sshUser:
|
if '@' in sshUser:
|
||||||
for user in [ sshUser, sshUser.split('@')[0] ]:
|
for user in [ sshUser, sshUser.split('@')[0] ]:
|
||||||
|
log.debug(TEMPLATE % dict(user=user, principals=principals))
|
||||||
print TEMPLATE % dict(user=user, principals=principals)
|
print TEMPLATE % dict(user=user, principals=principals)
|
||||||
else:
|
else:
|
||||||
|
log.debug(TEMPLATE % dict(user=user, principals=principals))
|
||||||
print TEMPLATE % dict(user=sshUser, principals=principals)
|
print TEMPLATE % dict(user=sshUser, principals=principals)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue