Logging: standardize logging tags
[babeltrace.git] / src / python-plugin-provider / python-plugin-provider.c
index 35f8755580c64e999ddff042abe674db1530ccdc..88c04e84a065f7a09629bc11605ae3e72390b1c0 100644 (file)
  * SOFTWARE.
  */
 
-#define BT_LOG_TAG "PLUGIN-PY"
+#define BT_LOG_TAG "LIB/PLUGIN-PY"
 
-#include "common/babeltrace.h"
+#include "lib/lib-logging.h"
+#include "common/macros.h"
 #include "compat/compiler.h"
 #include <babeltrace2/plugin/plugin-const.h>
 #include "lib/plugin/plugin.h"
@@ -402,14 +403,15 @@ bt_plugin_set *bt_plugin_python_create_all_from_file(const char *path)
                goto error;
        }
 
-       BT_LOGD("Creating all Python plugins from file: path=\"%s\"", path);
+       BT_LOGI("Trying to create all Python plugins from file: path=\"%s\"",
+               path);
        path_len = strlen(path);
 
        /* File name ends with `.py` */
        if (strncmp(path + path_len - PYTHON_PLUGIN_FILE_EXT_LEN,
                        PYTHON_PLUGIN_FILE_EXT,
                        PYTHON_PLUGIN_FILE_EXT_LEN) != 0) {
-               BT_LOGD("Skipping non-Python file: path=\"%s\"", path);
+               BT_LOGI("Skipping non-Python file: path=\"%s\"", path);
                goto error;
        }
 
@@ -422,7 +424,7 @@ bt_plugin_set *bt_plugin_python_create_all_from_file(const char *path)
 
        if (strncmp(basename, PYTHON_PLUGIN_FILE_PREFIX,
                        PYTHON_PLUGIN_FILE_PREFIX_LEN) != 0) {
-               BT_LOGD("Skipping Python file not starting with `%s`: "
+               BT_LOGI("Skipping Python file not starting with `%s`: "
                        "path=\"%s\"", PYTHON_PLUGIN_FILE_PREFIX, path);
                goto error;
        }
This page took 0.024962 seconds and 4 git commands to generate.