From 4d7c510a650ab47c0374b8797fa04512dec4d52b Mon Sep 17 00:00:00 2001 From: Gaius Date: Tue, 15 Feb 2022 17:44:00 +0800 Subject: [PATCH] feat: add client request log (#1069) Signed-off-by: Gaius --- client/daemon/peer/peertask_conductor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/daemon/peer/peertask_conductor.go b/client/daemon/peer/peertask_conductor.go index df642871fe3..df65818b82d 100644 --- a/client/daemon/peer/peertask_conductor.go +++ b/client/daemon/peer/peertask_conductor.go @@ -210,8 +210,8 @@ func (ptm *peerTaskManager) newPeerTaskConductor(ctx context.Context, request *s // register to scheduler, if error and disable auto back source, return error, otherwise return nil func (pt *peerTaskConductor) register() error { - logger.Debugf("request overview, pid: %s, url: %s, filter: %s, meta: %s, tag: %s", - pt.request.PeerId, pt.request.Url, pt.request.UrlMeta.Filter, pt.request.UrlMeta, pt.request.UrlMeta.Tag) + logger.Debugf("request overview, pid: %s, url: %s, filter: %s, tag: %s, range: %s, digest: %s, header: %#v", + pt.request.PeerId, pt.request.Url, pt.request.UrlMeta.Filter, pt.request.UrlMeta.Tag, pt.request.UrlMeta.Range, pt.request.UrlMeta.Digest, pt.request.UrlMeta.Header) // trace register regCtx, cancel := context.WithTimeout(pt.ctx, pt.peerTaskManager.schedulerOption.ScheduleTimeout.Duration) defer cancel()