From 2ad5b9bf544c9cf13dfbc616cc07abb8faf55954 Mon Sep 17 00:00:00 2001 From: gagliardetto Date: Mon, 26 Feb 2024 10:50:18 +0100 Subject: [PATCH] Logs: include remote file full URL (#92) --- http-range.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/http-range.go b/http-range.go index 04fa4083..2b948b8d 100644 --- a/http-range.go +++ b/http-range.go @@ -2,7 +2,6 @@ package main import ( "io" - "path/filepath" "strings" "time" @@ -53,7 +52,7 @@ func (r *readCloserWrapper) ReadAt(p []byte, off int64) (n int, err error) { prefix = icon + purpleBG("[READ-CAR]") } } - klog.V(5).Infof(prefix+" %s:%d+%d (%s)\n", filepath.Base(r.name), off, len(p), took) + klog.V(5).Infof(prefix+" %s:%d+%d (%s)\n", (r.name), off, len(p), took) } }() return r.rac.ReadAt(p, off)