Skip to content

Commit e263e48

Browse files
authored
Rearrange database manager log levels (#3926)
Start messages should be INFO level. Per-message logs should be DEBUG level. # Changed Behaviour less verbose db manager logging ## Type of change - Update to human readable text: Documentation/error messages/comments
1 parent 17f8294 commit e263e48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

parsl/monitoring/db_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def __init__(self,
296296
set_file_logger(f"{self.run_dir}/database_manager.log", level=logging_level,
297297
format_string="%(asctime)s.%(msecs)03d %(name)s:%(lineno)d [%(levelname)s] [%(threadName)s %(thread)d] %(message)s")
298298

299-
logger.debug("Initializing Database Manager process")
299+
logger.info("Initializing Database Manager process")
300300

301301
self.db = Database(db_url)
302302
self.batching_interval = batching_interval
@@ -581,10 +581,10 @@ def _dispatch_to_internal(self, x: Tuple) -> None:
581581
elif x[0] == MessageType.NODE_INFO:
582582
assert len(x) == 2, "expected NODE_INFO tuple to have exactly two elements"
583583

584-
logger.info("Will put {} to pending node queue".format(x[1]))
584+
logger.debug("Will put {} to pending node queue".format(x[1]))
585585
self.pending_node_queue.put(x[1])
586586
elif x[0] == MessageType.BLOCK_INFO:
587-
logger.info("Will put {} to pending block queue".format(x[1]))
587+
logger.debug("Will put {} to pending block queue".format(x[1]))
588588
self.pending_block_queue.put(x[-1])
589589
else:
590590
logger.error("Discarding message of unknown type {}".format(x[0]))

0 commit comments

Comments
 (0)