MCPcopy Index your code
hub / github.com/OWASP/Python-Honeypot / error

Function error

core/alert.py:123–143  ·  view source on GitHub ↗

build the error message Args: content: content of the message Returns: the message in error structure - None

(content)

Source from the content-addressed store, hash-verified

121
122
123def error(content):
124 """
125 build the error message
126
127 Args:
128 content: content of the message
129
130 Returns:
131 the message in error structure - None
132 """
133 logger.error(content)
134 sys.stdout.buffer.write(
135 (color.color_cmd("red")
136 + "[X] [{0}] ".format(now())
137 + color.color_cmd("yellow")
138 + content + color.color_cmd("reset")
139 + "\n"
140 ).encode("utf8")
141 )
142 sys.stdout.flush()
143 return
144
145
146def write_to_api_console(content):

Callers 3

network_traffic_captureFunction · 0.90
exit_failureFunction · 0.90
wait_until_interruptFunction · 0.90

Calls 1

nowFunction · 0.90

Tested by

no test coverage detected