From b3f9251edaa97ff0ca18eaa6ab54d82f6515710c Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 4 Apr 2023 15:06:38 -0400 Subject: [PATCH] Add some log-level method doc-strings --- tractor/log.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tractor/log.py b/tractor/log.py index 342257f..1ea9931 100644 --- a/tractor/log.py +++ b/tractor/log.py @@ -82,6 +82,10 @@ class StackLevelAdapter(logging.LoggerAdapter): msg: str, ) -> None: + ''' + IPC level msg-ing. + + ''' return self.log(5, msg) def runtime( @@ -94,12 +98,20 @@ class StackLevelAdapter(logging.LoggerAdapter): self, msg: str, ) -> None: + ''' + Cancellation logging, mostly for runtime reporting. + + ''' return self.log(16, msg) def pdb( self, msg: str, ) -> None: + ''' + Debugger logging. + + ''' return self.log(500, msg) def log(self, level, msg, *args, **kwargs):