1d95bea96bc2a652fe77b22c0639eaa888fe858f max Fri Oct 24 05:34:54 2025 -0700 adding CGI var logging option for hg.conf, refs #36533 diff --git src/hg/lib/hgConfig.c src/hg/lib/hgConfig.c index bb83ef02386..335f39dd5d5 100644 --- src/hg/lib/hgConfig.c +++ src/hg/lib/hgConfig.c @@ -366,15 +366,22 @@ return fileModTime(filename); } void cfgSetMaxMem() /* Check hg.conf for maxMem. If not set, don't limit memory. Otherwise * limit memory usage to that number. */ { char *maxMemStr = NULL; if ((maxMemStr = cfgOption("maxMem")) != NULL) { unsigned long maxMem = atol(maxMemStr); setMemLimit(maxMem); } } + +void cfgSetLogCgiVars() +/* optionally activate dumping of all CGI variables to stderr log */ +{ +cgiSetMaxLogLen(atoi(cfgOptionDefault("logCgiVarMaxLen", "0"))); +} +