Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
remove debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
g0rbe committed Dec 23, 2022
1 parent cb38ae7 commit 4e05ace
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ func UptimeWorker(hook string, ctx context.Context, wg *sync.WaitGroup) {

httpClient := http.Client{Timeout: 30 * time.Second}

fmt.Printf("Uptime hook started!\n")

ticker := time.NewTicker(60 * time.Second)
defer ticker.Stop()

Expand All @@ -57,8 +55,6 @@ func SaveConfigWorker(path string, ctx context.Context, wg *sync.WaitGroup) {

defer wg.Done()

fmt.Printf("Background saver started!\n")

ticker := time.NewTicker(10 * time.Second)
defer ticker.Stop()

Expand Down Expand Up @@ -89,8 +85,6 @@ func InsertWorker(id int, wg *sync.WaitGroup) {

defer wg.Done()

fmt.Printf("InsertWorker #%d is started!\n", id)

for entry := range LeafEntryChan {

rawEntry, err := ct.RawLogEntryFromLeaf(entry.Index, entry.Entry)
Expand Down Expand Up @@ -151,8 +145,6 @@ func InsertWorker(id int, wg *sync.WaitGroup) {
}
}
}

fmt.Printf("InsertWorker #%d is stopped!\n", id)
}

// FetchWorker is fetching certificates from log and send it into LeafEntryChan.
Expand All @@ -161,8 +153,6 @@ func FetchWorker(id int, wg *sync.WaitGroup) {

defer wg.Done()

fmt.Printf("FetchWorker #%d is started!\n", id)

logClient, err := client.New(
Conf.LogURI,
&http.Client{Timeout: 30 * time.Second},
Expand Down Expand Up @@ -199,6 +189,4 @@ func FetchWorker(id int, wg *sync.WaitGroup) {
}
}
}

fmt.Printf("FetchWorker #%d is stopped!\n", id)
}

0 comments on commit 4e05ace

Please sign in to comment.