]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Include time since startup in full scrape debug output
authorerdgeist <>
Fri, 19 Oct 2007 22:20:42 +0000 (22:20 +0000)
committererdgeist <>
Fri, 19 Oct 2007 22:20:42 +0000 (22:20 +0000)
opentracker.c

index f2a7e84120c1295ec127f52faf95c5afd1a88976..4ad42f0af941346c3c16dbdbbaf1227d1ba35220 100644 (file)
@@ -382,7 +382,7 @@ LOG_TO_STDERR( "stats: %d.%d.%d.%d - mode: s24s old\n", h->ip[0], h->ip[1], h->i
     /* Full scrape... you might want to limit that */
     if( !byte_diff( data, 12, "scrape HTTP/" ) ) {
 
-LOG_TO_STDERR( "scrp: %d.%d.%d.%d - FULL SCRAPE\n", h->ip[0], h->ip[1], h->ip[2], h->ip[3] );
+LOG_TO_STDERR( "[%08d] scrp: %d.%d.%d.%d - FULL SCRAPE\n", (unsigned int)(g_now - ot_start_time), h->ip[0], h->ip[1], h->ip[2], h->ip[3] );
 write( 2, static_tmpbuf, l );
 
       if( !( reply_size = return_fullscrape_for_tracker( &reply ) ) ) HTTPERROR_500;