mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-25 09:54:47 +01:00
22 lines
337 B
Go
22 lines
337 B
Go
|
package snapper
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/zrepl/zrepl/daemon/logging"
|
||
|
"github.com/zrepl/zrepl/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 ""
|
||
|
}
|