(msg, *args)
| 242 | |
| 243 | |
| 244 | def error_once(msg, *args): |
| 245 | try: |
| 246 | if args: |
| 247 | message = msg % args |
| 248 | else: |
| 249 | message = str(msg) |
| 250 | except: |
| 251 | message = "%s - %s" % (msg, args) |
| 252 | |
| 253 | if message not in _LoggingGlobals._warn_once_map: |
| 254 | _LoggingGlobals._warn_once_map[message] = True |
| 255 | critical(message) |
| 256 | |
| 257 | |
| 258 | def exception_once(msg, *args): |
no test coverage detected