Open agentzh opened 6 months ago
Are you using the release build of bpftime?
The release build of runtime may not emit drbug info, since it's configed with -DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_INFO
.
I was thinking that disabling debug and trace log may reduce the unnecessary log overhead and improve the performance. Shall we remve this config from the release build?
reference: https://eunomia.dev/bpftime/documents/usage/#control-log-level
I've noted that I cannot see any log messages from SPDLOG in the target process's agent code. For example, I have to patch the
ringbuf::reserve
function like below actually to see the log messages and error messages:Can we have a better solution here? BTW, I already set the
SPDLOG_LEVEL=Debug
system environment.