summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2018-02-21 17:12:15 +0000
committerAdam Jackson <ajax@redhat.com>2018-02-21 13:24:29 -0500
commitac13d740bf14ba8799d4dfbee1f6f99a297dbc7e (patch)
treee12fab2c64fbda72677f29ec5c43cf3dc422b6d5 /mi
parent9237c5e2878c088a6cd26ea380763465a9e67012 (diff)
mi: Mention extension loading in verbose logs
Listing the extensions is useful, despite being annoying for normal usecases. Print it only when extra (lvl 3) vebose is requested. v2: Move the logging to InitExtensions(), as requested by Adam. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'mi')
-rw-r--r--mi/miinitext.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mi/miinitext.c b/mi/miinitext.c
index e55073bf3..5596e212f 100644
--- a/mi/miinitext.c
+++ b/mi/miinitext.c
@@ -104,6 +104,7 @@ SOFTWARE.
#include "nonsdk_extinit.h"
#endif
#include "micmap.h"
+#include "os.h"
#include "globals.h"
/* List of built-in (statically linked) extensions */
@@ -260,6 +261,9 @@ InitExtensions(int argc, char *argv[])
ext = &ExtensionModuleList[i];
if (ext->initFunc != NULL &&
(ext->disablePtr == NULL || !*ext->disablePtr)) {
+ LogMessageVerb(X_INFO, 3, "Initializing extension %s\n",
+ ext->name);
+
(ext->initFunc) ();
}
}