2018-08-22 00:43:58 +02:00
|
|
|
package endpoint
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2019-03-22 19:41:12 +01:00
|
|
|
|
2024-10-18 19:21:17 +02:00
|
|
|
"github.com/zrepl/zrepl/internal/daemon/logging"
|
|
|
|
"github.com/zrepl/zrepl/internal/logger"
|
2018-08-22 00:43:58 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
type contextKey int
|
|
|
|
|
|
|
|
const (
|
2020-04-11 15:49:41 +02:00
|
|
|
ClientIdentityKey contextKey = iota
|
2018-08-22 00:43:58 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
type Logger = logger.Logger
|
|
|
|
|
|
|
|
func getLogger(ctx context.Context) Logger {
|
2020-04-11 15:49:41 +02:00
|
|
|
return logging.GetLogger(ctx, logging.SubsysEndpoint)
|
2018-08-22 00:43:58 +02:00
|
|
|
}
|