MCPcopy Create free account
hub / github.com/apache/httpd / log_log_id

Function log_log_id

server/log.c:712–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710}
711
712static int log_log_id(const ap_errorlog_info *info, const char *arg,
713 char *buf, int buflen)
714{
715 /*
716 * C: log conn log_id if available,
717 * c: log conn log id if available and not a once-per-request log line
718 * else: log request log id if available
719 */
720 if (arg && !strcasecmp(arg, "c")) {
721 if (info->c && (*arg != 'C' || !info->r)) {
722 return cpystrn(buf, info->c->log_id, buflen);
723 }
724 }
725 else if (info->rmain) {
726 return cpystrn(buf, info->rmain->log_id, buflen);
727 }
728 return 0;
729}
730
731static int log_keepalives(const ap_errorlog_info *info, const char *arg,
732 char *buf, int buflen)

Callers

nothing calls this directly

Calls 1

cpystrnFunction · 0.85

Tested by

no test coverage detected