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): def initial_commit(git_dir, cfg, pubkey, user):
log.debug('create initial commit') log.debug('create initial commit')
log.info('User:', user) log.info('User: ' + user)
log.debug('pubkey', pubkey) log.debug('pubkey: ' + pubkey)
if pubkey is None: if pubkey is None:
keyfile = 'keydir/principals' keyfile = 'keydir/principals'
content = user content = user
else: else:
keyfile = 'keydir/%s.pub' % user keyfile = 'keydir/%s.pub' % user
content = pubkey content = pubkey
log.debug('keyfile', keyfile) log.debug('keyfile' + keyfile)
log.debug('content', content) log.debug('content' + content)
repository.fast_import( repository.fast_import(
git_dir=git_dir, git_dir=git_dir,
commit_msg='Automatic creation of gitosis repository.', commit_msg='Automatic creation of gitosis repository.',