Skip to content

Commit

Permalink
Make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
erogol committed Apr 13, 2022
1 parent 2b3be80 commit 5562032
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trainer/logging/console_logger.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import datetime
from dataclasses import dataclass

import logging
from dataclasses import dataclass

logger = logging.getLogger("trainer")

Expand All @@ -26,7 +25,8 @@ def __init__(self):
self.old_epoch_loss_dict = None
self.old_eval_loss_dict = None

def log_with_flush(self, msg: str):
@staticmethod
def log_with_flush(msg: str):
if logger is not None:
logger.info(msg)
for handler in logger.handlers:
Expand Down

0 comments on commit 5562032

Please sign in to comment.