MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / error_once

Function error_once

_pydev_bundle/pydev_log.py:244–255  ·  view source on GitHub ↗
(msg, *args)

Source from the content-addressed store, hash-verified

242
243
244def 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
258def exception_once(msg, *args):

Callers 3

_map_file_to_serverFunction · 0.90
debug_onceFunction · 0.85

Calls 1

criticalFunction · 0.85

Tested by

no test coverage detected