MCPcopy Create free account
hub / github.com/apache/cloudberry / getLogLevel

Function getLogLevel

gpcontrib/gpcloud/src/s3log.cpp:74–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74LOGLEVEL getLogLevel(const char* v) {
75 if (!v) return EXT_FATAL;
76 if (strcmpci(v, "DEBUG") == 0) return EXT_DEBUG;
77 if (strcmpci(v, "WARNING") == 0) return EXT_WARNING;
78 if (strcmpci(v, "INFO") == 0) return EXT_INFO;
79 if (strcmpci(v, "ERROR") == 0) return EXT_ERROR;
80 return EXT_FATAL;
81}

Callers 2

TESTFunction · 0.85
InitConfigFunction · 0.85

Calls 1

strcmpciFunction · 0.85

Tested by 1

TESTFunction · 0.68