MCPcopy Create free account
hub / github.com/apple/foundationdb / severity_to_priority

Function severity_to_priority

fdbmonitor/fdbmonitor.cpp:127–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126enum Severity { SevDebug = 5, SevInfo = 10, SevWarn = 20, SevWarnAlways = 30, SevError = 40 };
127int severity_to_priority(Severity severity) {
128 switch (severity) {
129 case SevError:
130 return LOG_ERR;
131 case SevWarnAlways:
132 return LOG_WARNING;
133 case SevWarn:
134 return LOG_NOTICE;
135 case SevDebug:
136 return LOG_DEBUG;
137 case SevInfo:
138 default:
139 return LOG_INFO;
140 }
141}
142
143typedef std::string ProcessID;
144

Callers 1

vlog_process_msgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected