1d95bea96bc2a652fe77b22c0639eaa888fe858f max Fri Oct 24 05:34:54 2025 -0700 adding CGI var logging option for hg.conf, refs #36533 diff --git src/inc/cheapcgi.h src/inc/cheapcgi.h index ec4cd7146f4..c5b0ab6f18c 100644 --- src/inc/cheapcgi.h +++ src/inc/cheapcgi.h @@ -659,16 +659,21 @@ void cgiParsedVarsFree(struct cgiParsedVars **pTags); /* Free up memory associated with cgiParsedVars */ void cgiParsedVarsFreeList(struct cgiParsedVars **pList); /* Free up list of cgiParsedVars */ char *cgiScriptDirUrl(); /* Return the cgi-bin directory path on this webserver. * This is not the local directory but the <path> part after the server * in external URLs to this webserver. * e.g. if CGI is called via http://localhost/subdir/cgi-bin/cgiTest * the returned string is /subdir/. Must be free'd. */ void cgiChangeVar(char *varName, char *value); /* An entry point to change the value of a something passed to us on the URL. */ + +void cgiSetMaxLogLen(int l); +/* set the size of variable values that are dumped to stderr. Default is 0, which means no logging */ + #endif /* CHEAPCGI_H */ +