Skip to contentSkip to conversation

libxl: Add timestamp to the libxl driver log.

PATCH In review Anthony PERARD 2 participants 2 messages Jun 8, 2015 – Jun 13, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxl: Add timestamp to the libxl driver log.

---
 src/libxl/libxl_conf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/libxl/libxl_conf.c +1 -1
index 9b258ac..e845759 100644
@@ -1541,7 +1541,7 @@ libxlDriverConfigNew(void)
 
     cfg->logger =
         (xentoollog_logger *)xtl_createlogger_stdiostream(cfg->logger_file,
-                                                          XTL_DEBUG, 0);
+                                      XTL_DEBUG, XTL_STDIOSTREAM_SHOW_DATE);
     if (!cfg->logger) {
         VIR_ERROR(_("cannot create logger for libxenlight, disabling driver"));
         goto error;
Signature · 1 line
Anthony PERARD
#1 lore raw
Quoted 10 lines · Anthony PERARD
---
 src/libxl/libxl_conf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/libxl/libxl_conf.c +0 -0
index 9b258ac..e845759 100644

src/libxl/libxl_conf.c libxlDriverConfigNew(void) · line 1545

Quoted 6 lines
src/libxl/libxl_conf.c +1 -1
@@ -1541,7 +1541,7 @@ libxlDriverConfigNew(void)
 
     cfg->logger =
         (xentoollog_logger *)xtl_createlogger_stdiostream(cfg->logger_file,
-                                                          XTL_DEBUG, 0);
+                                      XTL_DEBUG, XTL_STDIOSTREAM_SHOW_DATE);
 

Good idea considering the log contains info for all domains. ACK and pushed.

Regards,
Jim