ee3659b05d0af22a52207792b8deaf836a727fe5 angie Fri Feb 22 13:56:01 2019 -0800 When hgTables gets multiple search results, hgFind calls webEnd and then hgTables needs to do cartWebEnd, so jsInlineFinish is called twice. Until the webStart/webEnd can be factored out of hgFind.c, prevent the jsInlineFinish warning from bothering the user. refs #22945 diff --git src/lib/cheapcgi.c src/lib/cheapcgi.c index 1b7fe99..27a266f 100644 --- src/lib/cheapcgi.c +++ src/lib/cheapcgi.c @@ -49,31 +49,32 @@ jsInlineInit(); // init if needed va_list args; va_start(args, format); dyStringVaPrintf(jsInlineLines, format, args); va_end(args); } boolean jsInlineFinishCalled = FALSE; void jsInlineFinish() /* finish outputting accumulated inline javascript */ { if (jsInlineFinishCalled) { // jsInlineFinish can be called multiple times when generating framesets or genomeSpace. - warn("jsInlineFinish() called already."); + // Log to stderr instead of bothering user, at least until work on #22945 is complete. + fprintf(stderr, "jsInlineFinish() called already."); } jsInlineInit(); // init if needed printf("<script type='text/javascript' nonce='%s'>\n%s</script>\n", getNonce(), jsInlineLines->string); dyStringClear(jsInlineLines); jsInlineFinishCalled = TRUE; } void jsInlineReset() /* used by genomeSpace to repeatedly output multiple pages to stdout */ { jsInlineFinishCalled = FALSE; } const char * const jsEvents[] = { "abort",