MCPcopy Create free account
hub / github.com/StackStorm/st2 / _match

Function _match

tools/log_watcher.py:100–106  ·  view source on GitHub ↗
(line, match_strings)

Source from the content-addressed store, hash-verified

98
99
100def _match(line, match_strings):
101 for level, match_strings in six.iteritems(match_strings):
102 for match_string in match_strings:
103 if line.startswith(match_string):
104 # print('Line: %s, match: %s' % (line, match_string))
105 return True, level, line
106 return False, "UNKNOWN", line
107
108
109def _detect_log_lines(fil, matchers):

Callers 1

_detect_log_linesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected