mirror of
https://github.com/status-im/status-go.git
synced 2025-01-12 07:35:02 +00:00
0937850268
* chore_: use custom logger for message timestamps * chore_: log store query duration
16 lines
235 B
Go
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)
|
|
}
|