aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@rgdd.se>2023-03-18 17:19:15 +0000
committerRasmus Dahlberg <rasmus@rgdd.se>2023-03-18 19:34:47 +0100
commit3715c5d8d2c36811732715257be8e7ffd0770d47 (patch)
tree08afd679be774e3d7bbb7f26b872628864b5af9a
parentcb3a473613887488567dcbf8ba66e90372d623a9 (diff)
Fix few debug prints
-rw-r--r--cmd_collect.go2
-rw-r--r--utils_ct.go5
2 files changed, 3 insertions, 4 deletions
diff --git a/cmd_collect.go b/cmd_collect.go
index 4402905..b33ceca 100644
--- a/cmd_collect.go
+++ b/cmd_collect.go
@@ -295,6 +295,6 @@ func persist(c *chunk.Chunk,
End: int64(sth.TreeSize),
Done: uint64(newTH.TreeSize) == sth.TreeSize,
}
- logger.Printf("DEBUG: %s: persisted [%d, %d]\n", desc, oldTH.TreeSize, newTH.TreeSize)
+ //logger.Printf("DEBUG: %s: persisted [%d, %d]\n", desc, oldTH.TreeSize, newTH.TreeSize)
return false, nil
}
diff --git a/utils_ct.go b/utils_ct.go
index 98ee130..49e7358 100644
--- a/utils_ct.go
+++ b/utils_ct.go
@@ -2,8 +2,7 @@ package main
import (
"crypto/sha256"
- "fmt"
- "os"
+ logger "log"
"strings"
"gitlab.torproject.org/rgdd/ct/pkg/metadata"
@@ -15,7 +14,7 @@ func logs(md metadata.Metadata) (logs []metadata.Log) {
for _, operators := range md.Operators {
for _, log := range operators.Logs {
if log.Description == nil {
- fmt.Fprintf(os.Stderr, "WARNING: skipping log without description")
+ logger.Printf("WARNING: skipping log without description")
continue
}
if log.State == nil {