Fix null log key values
This commit is contained in:
parent
e011fc6fe5
commit
988c4cfffe
2 changed files with 6 additions and 4 deletions
|
@ -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()
|
||||
|
|
Reference in a new issue