You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ig...@apache.org on 2013/08/09 01:09:21 UTC
[09/13] git commit: transform metalink to new logging non-API
transform metalink 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/ff043e16
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/ff043e16
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/ff043e16
Branch: refs/heads/consistent-gzip-error-msgs
Commit: ff043e169127bdf122c6960416877d587b347b5e
Parents: acc0593
Author: Igor Galić <i....@brainsware.org>
Authored: Thu Aug 8 23:38:24 2013 +0200
Committer: Igor Galić <i....@brainsware.org>
Committed: Thu Aug 8 23:38:24 2013 +0200
----------------------------------------------------------------------
plugins/experimental/metalink/metalink.cc | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/ff043e16/plugins/experimental/metalink/metalink.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/metalink/metalink.cc b/plugins/experimental/metalink/metalink.cc
index 55e88c8..5f3e7fe 100644
--- a/plugins/experimental/metalink/metalink.cc
+++ b/plugins/experimental/metalink/metalink.cc
@@ -38,6 +38,9 @@
#include "ts/ts.h"
#include "ink_defs.h"
+#define PLUGIN_NAME "metalink"
+#include <ts/debug.h>
+
typedef struct {
TSVConn connp;
TSIOBuffer bufp;
@@ -137,7 +140,7 @@ cache_open_write(TSCont contp, void *edata)
TSIOBufferReader readerp = TSIOBufferReaderAlloc(write_data->bufp);
if (TSHttpTxnClientReqGet(transform_data->txnp, &bufp, &hdr_loc) != TS_SUCCESS) {
- TSError("Couldn't retrieve client request header");
+ TSLogError("Couldn't retrieve client request header");
return 0;
}
@@ -528,7 +531,7 @@ http_send_response_hdr(TSCont contp, void *edata)
data->txnp = (TSHttpTxn) edata;
if (TSHttpTxnClientRespGet(data->txnp, &data->resp_bufp, &data->hdr_loc) != TS_SUCCESS) {
- TSError("Couldn't retrieve client response header");
+ TSLogError("Couldn't retrieve client response header");
TSHttpTxnReenable(data->txnp, TS_EVENT_HTTP_CONTINUE);
TSfree(data);
@@ -649,7 +652,7 @@ handler(TSCont contp, TSEvent event, void *edata)
}
void
-TSPluginInit(int /* argc ATS_UNUSED */, const char */* argv ATS_UNUSED */[])
+TSPluginInit(int /* argc ATS_UNUSED */, const char * /* argv ATS_UNUSED */[])
{
TSPluginRegistrationInfo info;
@@ -658,7 +661,7 @@ TSPluginInit(int /* argc ATS_UNUSED */, const char */* argv ATS_UNUSED */[])
info.support_email = const_cast<char*>("jack@nottheoilrig.com");
if (TSPluginRegister(TS_SDK_VERSION_3_0, &info) != TS_SUCCESS) {
- TSError("Plugin registration failed");
+ TSLogError("Plugin registration failed");
}
TSCont contp = TSContCreate(handler, NULL);