Code

plugin: Use multiple log entries when logging plugin information.
authorSebastian Harl <sh@tokkee.org>
Sat, 28 Jun 2014 07:36:31 +0000 (09:36 +0200)
committerSebastian Harl <sh@tokkee.org>
Sat, 28 Jun 2014 07:36:31 +0000 (09:36 +0200)
… instead of using a multi-line log entry (which is ugly).

src/core/plugin.c

index 0e87ce5a9f51f5a719031e36b0dc83460729bb83..36f80f6e6c29296322fac9979632a0e32ea05f29 100644 (file)
@@ -520,9 +520,11 @@ module_load(const char *basedir, const char *name,
        sdb_llist_append(all_plugins, SDB_OBJ(ctx));
 
        sdb_log(SDB_LOG_INFO, "core: Successfully loaded "
-                       "plugin '%s' v%i (%s)\n\t%s\n\tLicense: %s",
-                       ctx->info.plugin_name, ctx->info.plugin_version,
-                       INFO_GET(&ctx->info, description),
+                       "plugin %s v%i (%s)", ctx->info.plugin_name,
+                       ctx->info.plugin_version,
+                       INFO_GET(&ctx->info, description));
+       sdb_log(SDB_LOG_INFO, "core: Plugin %s: %s, License: %s",
+                       ctx->info.plugin_name,
                        INFO_GET(&ctx->info, copyright),
                        INFO_GET(&ctx->info, license));