2
0
mirror of https://github.com/status-im/status-go.git synced 2025-01-12 07:35:02 +00:00
richΛrd 0937850268
chore: use custom logger for message timestamps and log query duration ()
* chore_: use custom logger for message timestamps
* chore_: log store query duration
2024-05-21 13:29:29 -04:00

16 lines
235 B
Go

package logutils
import (
"fmt"
"go.uber.org/zap"
)
func WakuMessageTimestamp(key string, value *int64) zap.Field {
valueStr := "-"
if value != nil {
valueStr = fmt.Sprintf("%d", *value)
}
return zap.String(key, valueStr)
}