From 1fc6d57c0d42b25f3cd9f1d975dcc79194de400b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Thu, 1 Aug 2019 23:10:32 +0200 Subject: [PATCH] log to logifile --- gitosis/principals.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitosis/principals.py b/gitosis/principals.py index 68cb8ce..3e633a4 100644 --- a/gitosis/principals.py +++ b/gitosis/principals.py @@ -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)