repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
357120e
parent
dbac3df
author
Antonio Mika
date
2024-11-17 16:48:22 +0000 UTC
Continue on err for analytics
1 files changed,  +3, -0
M shared/analytics.go
+3, -0
 1@@ -185,8 +185,11 @@ func AnalyticsCollect(ch chan *db.AnalyticsVisits, dbpool db.DB, logger *slog.Lo
 2 		data, err := json.Marshal(visit)
 3 		if err != nil {
 4 			logger.Error("could not json marshall visit record", "err", err)
 5+			continue
 6 		}
 7+
 8 		data = append(data, '\n')
 9+
10 		_, err = s.Write(data)
11 		if err != nil {
12 			logger.Error("could not write to metric-drain", "err", err)