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

Function stderr

python/lib/cloud_utils.py:98–104  ·  view source on GitHub ↗

Print a message to stderr, optionally interpolating the arguments into it

(msgfmt,*args)

Source from the content-addressed store, hash-verified

96 return dict(proppairs)
97
98def stderr(msgfmt,*args):
99 """Print a message to stderr, optionally interpolating the arguments into it"""
100 msgfmt += "\n"
101 if logFileName != None:
102 sys.stderr = open(logFileName, 'a+')
103 if args: sys.stderr.write(msgfmt%args)
104 else: sys.stderr.write(msgfmt)
105
106def exit(errno=E_GENERIC,message=None,*args):
107 """Exit with an error status code, printing a message to stderr if specified"""

Callers 4

exitFunction · 0.85
prompt_for_hostpodsFunction · 0.85
setup_agent_configFunction · 0.85

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected