zrepl/endpoint/context.go

21 lines
316 B
Go
Raw 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)
}