mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
feat(sync): enable regclient logs (#3363)
feat: enable regclient logs Signed-off-by: Łukasz Jakimczuk <ljakimczuk@gmail.com>
This commit is contained in:
@@ -308,6 +308,7 @@ func NewLoggerWithWriter(level string, writer io.Writer) Logger {
|
||||
// GoroutineID adds goroutine-id to logs to help debug concurrency issues.
|
||||
func GoroutineID() int {
|
||||
var buf [64]byte
|
||||
|
||||
n := runtime.Stack(buf[:], false)
|
||||
idField := strings.Fields(strings.TrimPrefix(string(buf[:n]), "goroutine "))[0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user