logging debug

This commit is contained in:
Jakobus Schürz 2019-07-31 18:18:27 +02:00
parent 106522cee3
commit b3f7f15d18

View file

@ -44,16 +44,16 @@ def ssh_extract_user(pubkey):
def initial_commit(git_dir, cfg, pubkey, user):
log.debug('create initial commit')
log.info('User:', user)
log.debug('pubkey', pubkey)
log.info('User: ' + user)
log.debug('pubkey: ' + pubkey)
if pubkey is None:
keyfile = 'keydir/principals'
content = user
else:
keyfile = 'keydir/%s.pub' % user
content = pubkey
log.debug('keyfile', keyfile)
log.debug('content', content)
log.debug('keyfile' + keyfile)
log.debug('content' + content)
repository.fast_import(
git_dir=git_dir,
commit_msg='Automatic creation of gitosis repository.',