MCPcopy Create free account
hub / github.com/modelscope/ms-agent / warning_once

Function warning_once

ms_agent/utils/logger.py:25–30  ·  view source on GitHub ↗
(self, msg, *args, **kwargs)

Source from the content-addressed store, hash-verified

23
24
25def warning_once(self, msg, *args, **kwargs):
26 hash_id = kwargs.get('hash_id') or msg
27 if hash_id in warning_set:
28 return
29 warning_set.add(hash_id)
30 self.warning(msg)
31
32
33def get_logger(log_file: Optional[str] = None,

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
addMethod · 0.80

Tested by

no test coverage detected