prints the debug messages
(msg)
| 77 | return process_dict |
| 78 | |
| 79 | def printd (msg): |
| 80 | """ |
| 81 | prints the debug messages |
| 82 | """ |
| 83 | |
| 84 | #for debug |
| 85 | #print msg |
| 86 | |
| 87 | f= open(Config.MONITOR_LOG, 'w' if not path.isfile(Config.MONITOR_LOG) else 'r+') |
| 88 | f.seek(0, 2) |
| 89 | f.write(str(msg)+"\n") |
| 90 | f.close() |
| 91 | print(str(msg)) |
| 92 | |
| 93 | def raisealert(severity, msg, process_name=None): |
| 94 | """ Writes the alert message""" |
no test coverage detected