virt plugin: Added debug message
authorPavel Rochnyack <pavel2000@ngs.ru>
Mon, 13 May 2019 07:26:22 +0000 (14:26 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Mon, 13 May 2019 07:26:22 +0000 (14:26 +0700)
src/virt.c

index 1fdf45b..62e6089 100644 (file)
@@ -2258,8 +2258,11 @@ static int lv_read(user_data_t *ud) {
       return -1;
 
   /* Wait until inst#0 establish connection */
-  if (conn == NULL)
+  if (conn == NULL) {
+    DEBUG(PLUGIN_NAME " plugin#%s: Wait until inst#0 establish connection",
+          inst->tag);
     return 0;
+  }
 
   time_t t;
   time(&t);