From: Amos Jeffries Date: Wed, 10 Oct 2012 01:32:16 +0000 (-0600) Subject: Polish: use DBG_PARSE_NOTE to warn about deprecated logformat tokens X-Git-Tag: SQUID_3_3_0_1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2d90ba2bf695a0d0584f020ce49284be72db69f;p=thirdparty%2Fsquid.git Polish: use DBG_PARSE_NOTE to warn about deprecated logformat tokens --- diff --git a/src/format/Token.cc b/src/format/Token.cc index adea6bc852..099dcbeeba 100644 --- a/src/format/Token.cc +++ b/src/format/Token.cc @@ -2,6 +2,7 @@ #include "format/Config.h" #include "format/Token.h" #include "format/TokenTableEntry.h" +#include "globals.h" #include "SquidConfig.h" #include "Store.h" @@ -527,22 +528,22 @@ done: break; case LFT_HTTP_SENT_STATUS_CODE_OLD_30: - debugs(46, DBG_CRITICAL, "WARNING: The \"Hs\" formatting code is deprecated. Use the \">Hs\" instead."); + debugs(46, DBG_PARSE_NOTE(DBG_IMPORTANT), "WARNING: The \"Hs\" formatting code is deprecated. Use the \">Hs\" instead."); type = LFT_HTTP_SENT_STATUS_CODE; break; case LFT_SERVER_LOCAL_IP_OLD_27: - debugs(46, DBG_CRITICAL, "WARNING: The \"oa\" formatting code is deprecated. Use the \"rp\" instead."); + debugs(46, DBG_PARSE_NOTE(DBG_IMPORTANT), "WARNING: The \"rp\" formatting code is deprecated. Use the \">rp\" instead."); type = LFT_CLIENT_REQ_URLPATH; break; case LFT_REQUEST_VERSION_OLD_2X: - debugs(46, DBG_CRITICAL, "WARNING: The \">v\" formatting code is deprecated. Use the \">rv\" instead."); + debugs(46, DBG_PARSE_NOTE(DBG_IMPORTANT), "WARNING: The \">v\" formatting code is deprecated. Use the \">rv\" instead."); type = LFT_REQUEST_VERSION; break;