lymboy opened a new pull request, #234: URL: https://github.com/apache/skywalking-go/pull/234
**Changes** Added nil check in - tools/go-agent/instrument/logger/context.go - tools/go-agent/instrument/logger/frameworks/logrus_adapt.go **Reason for Change** Our project worked normally with Go 1.21 + go-agent v0.4. After upgrading to Go 1.24 + go-agent v0.6, it compiled successfully but crashed with a nil panic at startup. Investigation showed that the panic occurred because Logrus was accessed during initialization (init), while the underlying WrapFormat called GetLogContext before Logrus was fully initialized. Full investigation details are documented on my blog: https://lymboy.com/archives/go-skywalking-agent-logrus-nil-panic -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
