Skip to content

Commit

Permalink
Log migration_0022 into a file
Browse files Browse the repository at this point in the history
  • Loading branch information
marioba committed Feb 11, 2022
1 parent a34b6ca commit 3550f36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions comptages/datamodel/migrations/0022_auto_20211217_0624.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

def get_console_logger():
logger = logging.getLogger(__name__)
handler = logging.StreamHandler(sys.stdout)
handler.flush = sys.stdout.flush
handler = logging.FileHandler('migration_0022.log')
logger.addHandler(handler)
logger.setLevel(logging.INFO)

Expand Down

0 comments on commit 3550f36

Please sign in to comment.