uniformed startup messages

This commit is contained in:
pippellia-btc
2025-09-14 18:48:55 +02:00
parent 25ba6afeb6
commit f70fcb2404
3 changed files with 5 additions and 1 deletions

View File

@@ -54,6 +54,7 @@ func Arbiter(
db redb.RedisDB,
forward Forward[string],
) {
log.Println("Arbiter: ready")
defer log.Println("Arbiter: shut down")
ticker := time.NewTicker(config.PingWait)

View File

@@ -46,6 +46,7 @@ func Fetcher(
pubkeys <-chan string,
forward Forward[*nostr.Event],
) {
log.Println("Fetcher: ready")
defer log.Println("Fetcher: shut down")
batch := make([]string, 0, config.Batch)
@@ -146,7 +147,7 @@ func FetcherDB(
pubkeys <-chan string,
forward Forward[*nostr.Event],
) {
log.Println("FetcherDB: ready")
defer log.Println("FetcherDB: shut down")
batch := make([]string, 0, config.Batch)

View File

@@ -17,6 +17,7 @@ func Recorder(
events <-chan *nostr.Event,
forward Forward[*nostr.Event],
) {
log.Println("Recorder: ready")
defer log.Println("Recorder: shut down")
timer := midnightTimer()
@@ -45,6 +46,7 @@ func Recorder(
log.Printf("Recorder: %v", err)
}
log.Printf("Recorder: finalized stats for %s", yesterday)
timer = midnightTimer()
}
}