mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
Include function/line nr at all logging levels
This commit is contained in:
parent
7c99cb93c5
commit
dcd9865385
@ -1,3 +1,8 @@
|
||||
Thu May 28 13:27:30 BST 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/logging.c: Include function name & line number in all
|
||||
logging levels.
|
||||
|
||||
Thu May 28 12:00:30 BST 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
Fix python domain events example & binding.
|
||||
|
@ -516,7 +516,7 @@ void virLogMessage(const char *category, int priority, const char *funcname,
|
||||
gettimeofday(&cur_time, NULL);
|
||||
localtime_r(&cur_time.tv_sec, &time_info);
|
||||
|
||||
if ((funcname != NULL) && (priority == VIR_LOG_DEBUG)) {
|
||||
if ((funcname != NULL)) {
|
||||
ret = virAsprintf(&msg, "%02d:%02d:%02d.%03d: %s : %s:%lld : %s\n",
|
||||
time_info.tm_hour, time_info.tm_min,
|
||||
time_info.tm_sec, (int) cur_time.tv_usec / 1000,
|
||||
|
Loading…
Reference in New Issue
Block a user