[
https://issues.apache.org/jira/browse/TS-2216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13801307#comment-13801307
]
Leif Hedstrom commented on TS-2216:
-----------------------------------
Can you try:
{code}
diff --git a/proxy/logging/LogAccessHttp.cc b/proxy/logging/LogAccessHttp.cc
index ddc5c7d..cc89abc 100644
--- a/proxy/logging/LogAccessHttp.cc
+++ b/proxy/logging/LogAccessHttp.cc
@@ -361,11 +361,11 @@ LogAccessHttp::marshal_client_req_unmapped_url_host(char
*buf)
{
int len = INK_MIN_ALIGN;
- if (buf) {
- validate_unmapped_url();
- validate_unmapped_url_path();
+ validate_unmapped_url();
+ validate_unmapped_url_path();
- len = round_strlen(m_client_req_unmapped_url_host_len + 1); // +1 for
eos
+ len = round_strlen(m_client_req_unmapped_url_host_len + 1); // +1 for
eos
+ if (buf) {
marshal_mem(buf, m_client_req_unmapped_url_host_str,
m_client_req_unmapped_url_host_len, len);
}
return len;
{code}
> Custom Log %<cquup> not always initialized properly.
> ----------------------------------------------------
>
> Key: TS-2216
> URL: https://issues.apache.org/jira/browse/TS-2216
> Project: Traffic Server
> Issue Type: Bug
> Components: Logging
> Reporter: Adam Twardowski
> Fix For: 4.2.0
>
>
> Noticed this in my log output, it appears that the %<cquup> log variable is
> now always initialized properly.
> {code}
> <LogFormat>
> <Name = "csv"/>
> <Format =
> "\"%<cqtn>\",\"%<ttmsf>\",\"%<{X-Forwarded-For}cqh>\",\"%<crc>\",\"%<pssc>\",\"%<cqhl>\",\"%<pscl>\",\"%<cqhm>\",\"%<cquuc>\",\"%<cquuh>\",\"%<cquup>\""/>
> </LogFormat>
> "12/Sep/2013:17:48:16
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","à"
> "12/Sep/2013:17:48:17
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","¡62R"
> "12/Sep/2013:17:48:17
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","¡62R"
> "12/Sep/2013:17:48:17
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","1"
> "12/Sep/2013:17:48:17
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","¡62R"
> "12/Sep/2013:17:48:17
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","±"
> "12/Sep/2013:17:48:17
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","¡62R"
> "12/Sep/2013:17:48:18
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","¢62R"
> "12/Sep/2013:17:48:18
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","¢62R"
> "12/Sep/2013:17:48:19
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","£62R"
> "12/Sep/2013:17:48:19
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","£62R"
> "12/Sep/2013:17:48:19
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-",""
> "12/Sep/2013:17:48:19
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","£62R"
> "12/Sep/2013:17:48:19
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","£62R"
> "12/Sep/2013:17:48:19
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","·"
> "12/Sep/2013:17:48:20
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","¤62R"
> "12/Sep/2013:17:48:20
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","r/player.swf"
> "12/Sep/2013:17:48:21
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-",""
> "12/Sep/2013:17:48:21
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","¡"
> "12/Sep/2013:17:48:21
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","¥62R"
> "12/Sep/2013:17:48:21
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","¥62R"
> "12/Sep/2013:17:48:21
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","¥62R"
> "12/Sep/2013:17:48:21
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","!"
> "12/Sep/2013:17:48:21
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","¥62R"
> "12/Sep/2013:17:48:22
> -0500","0.000","-","ERROR_UNKNOWN(90)","000","15","0","-","-","-","¦62R"
> {code}
--
This message was sent by Atlassian JIRA
(v6.1#6144)