X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=fifos%2Fwarcs.go;fp=fifos%2Fwarcs.go;h=90e17a0ccceb3848ad947c9aed87ed1bf56435dd;hb=bae1cfe5ce46a1b758ccc4dddda2751b6ac47f3e;hp=6d38700b2817385883d509c51c8cc816b581df34;hpb=0c0a261a6ef4fddfc34a9150005f7964cc69c420;p=tofuproxy.git diff --git a/fifos/warcs.go b/fifos/warcs.go index 6d38700..90e17a0 100644 --- a/fifos/warcs.go +++ b/fifos/warcs.go @@ -34,7 +34,10 @@ func listWARCs(p string) { } warc.WARCsM.RLock() for warcPath, uris := range warc.WARCs { - fmt.Fprintf(fd, "%s\t%d\n", warcPath, len(uris)) + fmt.Fprintf( + fd, "%s\t%d\t%d\n", + warcPath, len(uris), len(warc.WARCs[warcPath]), + ) } warc.WARCsM.RUnlock() fd.Close() @@ -72,7 +75,12 @@ func addWARC(p string) { log.Printf("%s: can not open %s: %+v\n", p, warcPath, err) break } - log.Printf("%s: %s: added %d URIs\n", p, warcPath, len(warc.WARCs[warcPath])) + log.Printf( + "%s: %s: added %d URIs %d segments\n", + p, warcPath, + len(warc.WARCs[warcPath]), + len(warc.WARCsOffsets[warcPath]), + ) } } }