Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 6, 2024
1 parent e630b05 commit aeefd9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jupyterhub_idle_culler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,16 +581,16 @@ def _default_cull_every(self):

_log_formatter_cls = LogFormatter

@default('log_level')
@default("log_level")
def _log_level_default(self):
return logging.INFO

@default('log_datefmt')
@default("log_datefmt")
def _log_datefmt_default(self):
"""Exclude date from default date format"""
return "%Y-%m-%d %H:%M:%S"

@default('log_format')
@default("log_format")
def _log_format_default(self):
"""override default log format to include time"""
return "%(color)s[%(levelname)1.1s %(asctime)s.%(msecs).03d %(name)s %(module)s:%(lineno)d]%(end_color)s %(message)s"
Expand Down
1 change: 1 addition & 0 deletions tests/test_idle_culler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from unittest import mock

from tornado.log import app_log

from jupyterhub_idle_culler import utcnow


Expand Down

0 comments on commit aeefd9d

Please sign in to comment.