Fix null log key values

This commit is contained in:
Joseph Schorr 2014-01-08 18:44:50 -05:00
parent e011fc6fe5
commit 988c4cfffe
2 changed files with 6 additions and 4 deletions

View file

@ -282,6 +282,9 @@ def populate_database():
model.log_action('pull_repo', org.username, repository=org_repo, timestamp=today,
metadata={'token': 'sometoken', 'token_code': 'somecode', 'repo': 'orgrepo'})
model.log_action('pull_repo', org.username, repository=org_repo, timestamp=today,
metadata={'token_code': 'somecode', 'repo': 'orgrepo'})
if __name__ == '__main__':
logging.basicConfig(**app.config['LOGGING_CONFIG'])
initialize_database()