Skip to content

Commit 90ca5c9

Browse files
committed
fix: don't drop locally defined logs
1 parent 915bdbb commit 90ca5c9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

internal/certificatetransparency/ct-watcher.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,15 @@ func (w *Watcher) dropRemovedLogs(logList loglist3.LogList) {
172172
}
173173
}
174174

175+
// Make sure to not drop logs that are defined locally in the additional logs list
176+
for _, additionalLogConfig := range config.AppConfig.General.AdditionalLogs {
177+
additionalLogListURL := normalizeCtlogURL(additionalLogConfig.URL)
178+
if workerURL == additionalLogListURL {
179+
onLogList = true
180+
break
181+
}
182+
}
183+
175184
// If the log is not in the loglist, stop the worker
176185
if !onLogList {
177186
log.Printf("Stopping worker. CT URL not found in LogList: '%s'\n", ctWorker.ctURL)

0 commit comments

Comments
 (0)