Skip to content

Commit

Permalink
logger fix
Browse files Browse the repository at this point in the history
  • Loading branch information
avivajpeyi committed Jul 28, 2023
1 parent 8ba26a2 commit 63e5f8a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/tess_atlas/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ def setup_logger(

class DeltaTimeFormatter(logging.Formatter):
def format(self, record):
duration = datetime.datetime.utcfromtimestamp(
record.relativeCreated / 1000
)
duration = datetime.utcfromtimestamp(record.relativeCreated / 1000)
record.delta = duration.strftime("%H:%M:%S")
return super().format(record)

Expand Down

0 comments on commit 63e5f8a

Please sign in to comment.