Skip to content

Question regarding verbose logs upon CT fetcher startup #1030

@d-Rickyy-b

Description

@d-Rickyy-b

Hi there,

this is more of a question than an actual issue. When starting my application and all the workers for the individual CT logs, I get a lot of log spam:

I0129 21:46:18.176929   26552 fetcher.go:123] https://ct.googleapis.com/logs/us1/argon2024: Reset EndIndex from 0 to 17546767
I0129 21:46:18.196232   26552 fetcher.go:120] https://ct.googleapis.com/logs/argon2022: Got STH with 1602370828 certs
I0129 21:46:18.196232   26552 fetcher.go:123] https://ct.googleapis.com/logs/argon2022: Reset EndIndex from 0 to 1602370828
I0129 21:46:18.212967   26552 fetcher.go:120] https://yeti2023.ct.digicert.com/log: Got STH with 106052098 certs
I0129 21:46:18.212967   26552 fetcher.go:123] https://yeti2023.ct.digicert.com/log: Reset EndIndex from 0 to 106052098
I0129 21:46:18.217095   26552 fetcher.go:120] https://yeti2022.ct.digicert.com/log: Got STH with 66539807 certs
I0129 21:46:18.217095   26552 fetcher.go:123] https://yeti2022.ct.digicert.com/log: Reset EndIndex from 0 to 66539807
I0129 21:46:18.229944   26552 fetcher.go:120] https://yeti2025.ct.digicert.com/log: Got STH with 563 certs
I0129 21:46:18.229944   26552 fetcher.go:123] https://yeti2025.ct.digicert.com/log: Reset EndIndex from 0 to 563
I0129 21:46:18.233930   26552 fetcher.go:120] https://yeti2024.ct.digicert.com/log: Got STH with 14413348 certs
I0129 21:46:18.233930   26552 fetcher.go:123] https://yeti2024.ct.digicert.com/log: Reset EndIndex from 0 to 14413348
I0129 21:46:18.573582   26552 fetcher.go:120] https://ct.trustasia.com/log2022: Got STH with 1548183 certs
I0129 21:46:18.573582   26552 fetcher.go:123] https://ct.trustasia.com/log2022: Reset EndIndex from 0 to 1548183
I0129 21:46:18.580210   26552 fetcher.go:120] https://ct.trustasia.com/log2023: Got STH with 292810 certs
I0129 21:46:18.580210   26552 fetcher.go:123] https://ct.trustasia.com/log2023: Reset EndIndex from 0 to 292810
I0129 21:46:18.762320   26552 fetcher.go:120] https://ct2024.trustasia.com/log2024: Got STH with 32005 certs
I0129 21:46:18.762320   26552 fetcher.go:123] https://ct2024.trustasia.com/log2024: Reset EndIndex from 0 to 32005
...

This is due to these lines of code:

klog.Infof("%s: Got STH with %d certs", f.uri, sth.TreeSize)
if size := int64(sth.TreeSize); f.opts.EndIndex == 0 || f.opts.EndIndex > size {
klog.Infof("%s: Reset EndIndex from %d to %d", f.uri, f.opts.EndIndex, size)

Now my questions are:

  1. Do you know of a way how to configure the klog library to only log specific log levels? I read about -v, but i have no such flag specified for my CLI
  2. Do you think the lib needs to be that verbose by default when starting up the log workers?

Cheers,
Rico

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions