40261d478ea09f305bc80bfab14435d84050f7d1
braney
  Wed Jul 1 15:11:55 2015 -0700
put the database name in trackLog output

diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index 34dd070..eee1040 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -1936,44 +1936,44 @@
 	    dyStringAppendC(dy, ',');
 	dyStringPrintf(dy,"%s:%d", track->track, vis);
 	}
     }
 }
 
 static void logTrackVisibilities (char *hgsid, struct track *trackList)
 /* log visibile tracks and hgsid */
 {
 struct dyString *dy = newDyString(1024);
 
 // build up dyString
 logTrackList(dy, trackList);
 
 // put out ~1024 bye blocks to error_log because otherwise
-// it'll chop up the lines
+// Apache will chop up the lines
 char *begin = dy->string;
 char *ptr = begin;
 int count = 0;
 for(ptr=begin; ((ptr = strchr(ptr, ',')) != NULL); ptr++)
     {
-    if (ptr - begin > 900)
+    if (ptr - begin > 800)
 	{
 	*ptr = 0;
-	fprintf(stderr, "trackLog %d %s %s\n", count++, hgsid, begin);
+	fprintf(stderr, "trackLog %d %s %s %s\n", count++, database, hgsid, begin);
 	begin = ptr+1;
 	}
     }
-fprintf(stderr, "trackLog %d %s %s\n", count++, hgsid, begin);
+fprintf(stderr, "trackLog %d %s %s %s\n", count++, database, hgsid, begin);
 
 dyStringFree(&dy);
 }
 
 static void rAddToTrackHash(struct hash *trackHash, struct track *trackList)
 /* Add list and any children of list to hash. */
 {
 struct track *track;
 for (track = trackList; track != NULL; track = track->next)
     {
     hashAddUnique(trackHash, track->track, track);
     rAddToTrackHash(trackHash, track->subtracks);
     }
 }