Updated Branches: refs/heads/consistent-gzip-error-msgs [created] 891ada6c7
transform libloader to new logging non-API Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/0e3ed88c Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/0e3ed88c Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/0e3ed88c Branch: refs/heads/consistent-gzip-error-msgs Commit: 0e3ed88c1c05b152bcbc7ec94a9dba193bf1a16f Parents: 9800aa9 Author: Igor GaliÄ <[email protected]> Authored: Thu Aug 8 19:18:10 2013 +0200 Committer: Igor GaliÄ <[email protected]> Committed: Thu Aug 8 19:39:03 2013 +0200 ---------------------------------------------------------------------- plugins/libloader/libloader.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/0e3ed88c/plugins/libloader/libloader.c ---------------------------------------------------------------------- diff --git a/plugins/libloader/libloader.c b/plugins/libloader/libloader.c index ef84c2f..ff0268b 100644 --- a/plugins/libloader/libloader.c +++ b/plugins/libloader/libloader.c @@ -32,6 +32,9 @@ #include <stdlib.h> #include <ts/ts.h> +#define PLUGIN_NAME "libloader" +#include <ts/debug.h> + typedef struct { void *handle; void *next; @@ -61,7 +64,7 @@ void TSPluginInit(int argc, const char *argv[]) info.support_email = (char *)"[email protected]"; if (TSPluginRegister(TS_SDK_VERSION_3_0, &info) != TS_SUCCESS) { - TSError("[libloader] Plugin registration failed.\n"); + TSLogError("Plugin registration failed."); return; } @@ -75,10 +78,10 @@ void TSPluginInit(int argc, const char *argv[]) l->handle = handle; l->next = libs; libs = l; - TSDebug("libloader", " loaded %s\n", lib); + TSLogDebug(i"loaded %s", lib); } else { - TSError("[libloader] failed to load %s: %s\n", lib, dlerror()); + TSLogError("Failed to load %s: %s", lib, dlerror()); } } return;
