Include function/line nr at all logging levels

This commit is contained in:
Daniel P. Berrange 2009-05-28 12:54:07 +00:00
parent 7c99cb93c5
commit dcd9865385
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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,