(self, level, message, *args, **kws)
| 44 | """ |
| 45 | |
| 46 | def log_sensitive(self, level, message, *args, **kws): |
| 47 | if self.isEnabledFor(level): |
| 48 | # Since we do string concatenation here, we cast the message to |
| 49 | # string explicitly, just to avoid potential type errors if someone |
| 50 | # passes an Error object for example. |
| 51 | # The closing marker is needed, because a log message might contain |
| 52 | # newlines. Otherwise, we wouldn’t be able to tell in hindsight how |
| 53 | # many lines a log message consists of. |
| 54 | self._log(level, '[SENSITIVE] ' + str(message) + ' [/SENSITIVE]', |
| 55 | args, **kws) |
| 56 | |
| 57 | def debug_sensitive(self, message, *args, **kws): |
| 58 | self.log_sensitive(logging.DEBUG, message, *args, **kws) |
no outgoing calls
no test coverage detected