1
0
mirror of https://github.com/zrepl/zrepl.git synced 2025-03-27 23:56:12 +01:00
zrepl/internal/daemon/snapper/util.go
2024-10-18 19:21:17 +02:00

22 lines
355 B
Go

package snapper
import (
"context"
"github.com/zrepl/zrepl/internal/daemon/logging"
"github.com/zrepl/zrepl/internal/logger"
)
type Logger = logger.Logger
func getLogger(ctx context.Context) Logger {
return logging.GetLogger(ctx, logging.SubsysSnapshot)
}
func errOrEmptyString(e error) string {
if e != nil {
return e.Error()
}
return ""
}