1d95bea96bc2a652fe77b22c0639eaa888fe858f
max
  Fri Oct 24 05:34:54 2025 -0700
adding CGI var logging option for hg.conf, refs #36533

diff --git src/hg/hgTracks/mainMain.c src/hg/hgTracks/mainMain.c
index f2d7840ed16..3b3c243cdcd 100644
--- src/hg/hgTracks/mainMain.c
+++ src/hg/hgTracks/mainMain.c
@@ -26,31 +26,34 @@
 #include "imageV2.h"
 #include "extTools.h"
 #include "botDelay.h"
 #include "hgConfig.h"
 #include <sys/time.h>
 #include <sys/resource.h>
 
 boolean issueBotWarning;
 long enteredMainTime = 0;
 
 int main(int argc, char *argv[])
 {
 enteredMainTime = clock1000();
 measureTime(NULL);
 
+// This is generic CGI setup code: Should be moved one day into a generic function 
+// combined with the code cart.c:genericCgiSetup() ?
 cfgSetMaxMem(); // read hg.conf and set the maxMem if there
+cfgSetLogCgiVars(); // set logging of the CGI vars
 
 issueBotWarning = earlyBotCheck(enteredMainTime, "hgTracks", delayFraction, 0, 0, "html");
 browserName = hBrowserName();
 organization = "UCSC";
 
 /* Push very early error handling - this is just
  * for the benefit of the cgiVarExists, which
  * somehow can't be moved effectively into doMiddle. */
 htmlPushEarlyHandlers();
 cgiSpoof(&argc, argv);
 char * link = webTimeStampedLinkToResourceOnFirstCall("HGStyle.css",TRUE); // resource file link
 if (link)                                                                  // wrapped in html
     htmlSetStyle(link);
 
 oldVars = hashNew(10);