mirror of
https://github.com/zrepl/zrepl.git
synced 2025-01-24 15:19:36 +01:00
daemon/control: stop logging status endpoint requests
This commit is contained in:
parent
438f950be3
commit
5efeec1819
@ -100,10 +100,11 @@ func (j *controlJob) Run(ctx context.Context) {
|
|||||||
}}})
|
}}})
|
||||||
|
|
||||||
mux.Handle(ControlJobEndpointStatus,
|
mux.Handle(ControlJobEndpointStatus,
|
||||||
requestLogger{log: log, handler: jsonResponder{func() (interface{}, error) {
|
// don't log requests to status endpoint, too spammy
|
||||||
|
jsonResponder{func() (interface{}, error) {
|
||||||
s := j.jobs.status()
|
s := j.jobs.status()
|
||||||
return s, nil
|
return s, nil
|
||||||
}}})
|
}})
|
||||||
|
|
||||||
mux.Handle(ControlJobEndpointSignal,
|
mux.Handle(ControlJobEndpointSignal,
|
||||||
requestLogger{log: log, handler: jsonRequestResponder{func(decoder jsonDecoder) (interface{}, error) {
|
requestLogger{log: log, handler: jsonRequestResponder{func(decoder jsonDecoder) (interface{}, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user