Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pgmq/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _initialize_logging(self) -> None:
self.logger = logging.getLogger(__name__)

if self.verbose:
log_filename = self.log_filename or datetime.now().strftime(
log_filename = self.log_filename or datetime.datetime.now().strftime(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for noticing the problem.
I would like make it add:
from datetime import datetime
at the top of the file instead of datetime.datetime.now()
what do you think about the change?

"pgmq_debug_%Y%m%d_%H%M%S.log"
)
file_handler = logging.FileHandler(
Expand Down