1
0
mirror of https://github.com/zrepl/zrepl.git synced 2024-12-23 07:28:57 +01:00
zrepl/endpoint/context.go

21 lines
316 B
Go
Raw Permalink Normal View History

package endpoint
import (
"context"
2019-03-22 19:41:12 +01:00
"github.com/zrepl/zrepl/daemon/logging"
"github.com/zrepl/zrepl/logger"
)
type contextKey int
const (
ClientIdentityKey contextKey = iota
)
type Logger = logger.Logger
func getLogger(ctx context.Context) Logger {
return logging.GetLogger(ctx, logging.SubsysEndpoint)
}