internal/ct: return errors from NewLog instead of calling os.Exit(1)
Maintainers usually reply within 1 day
@phbnf is already working on this.
Since Oct 28, 2026.
Assessment
This issue has not been assessed yet.
Description
In #841 (e25bb652), klog.Exitf calls in internal/ct/ctlog.go (NewLog) were replaced with slog.ErrorContext + os.Exit(1).
On GCP (cmd/tesseract/gcp), slog is configured by default to write asynchronously to the Cloud Logging API (--slog_to_cloud_api=true, --slog_to_stdout=false). Calling os.Exit(1) directly inside internal/ct.NewLog bypasses fatal() / flushLogs() in cmd/tesseract/gcp/main.go, causing the process to terminate before the buffered error log entry is flushed to Cloud Logging.
ct.NewLog (and other library packages) should return errors to the caller instead of calling os.Exit(1).
- Dominant language
- Go
- Stars
- 41
- Forks
- 20
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 26
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from transparency-dev/tesseract
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
transparency-dev/tesseract#879 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
transparency-dev/tesseract#851 ·
Maintainers usually reply within 1 day
-
Remove support for precert signing certificatesPossibly taken @phbnf claimed this 4 days ago. Openbug
transparency-dev/tesseract#995 · 1 assignee ·
Maintainers usually reply within 1 day
-
Migrate Tessera MTC Log and Mirror code to the TesseraCT repoMay be free again @phbnf claimed this 34 days ago, and no pull request is open. Openenhancement
transparency-dev/tesseract#962 · 1 assignee ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 68/100
transparency-dev/tesseract#937 ·
Maintainers usually reply within 1 day
All issues in transparency-dev/tesseract
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
seaweedfs/seaweed-block#443 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
version-fox/vfox#825 ·
Maintainers usually reply within 1 day
-
HTTP `batch.Send` returns nil and inserts no rows when the block does not encodePossibly taken @Indian-boult claimed this today. Openbug queries
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ClickHouse/clickhouse-go#2155 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 1 day