MCPcopy Create free account
hub / github.com/apache/cloudstack / printd

Function printd

systemvm/debian/root/monitorServices.py:79–91  ·  view source on GitHub ↗

prints the debug messages

(msg)

Source from the content-addressed store, hash-verified

77 return process_dict
78
79def 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
93def raisealert(severity, msg, process_name=None):
94 """ Writes the alert message"""

Callers 9

getServicesConfigFunction · 0.85
isPidMatchPidFileFunction · 0.85
restartServiceFunction · 0.85
checkProcessStatusFunction · 0.85
monitProcessFunction · 0.85
executeFunction · 0.85
mainFunction · 0.85
monitorServices.pyFile · 0.85

Calls 2

writeMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected