[ 
https://issues.apache.org/jira/browse/TS-4659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15376393#comment-15376393
 ] 

James Peach commented on TS-4659:
---------------------------------

Regression from TS-4649. This patch fixes it:

{noformat}
diff --git a/proxy/logging/LogField.cc b/proxy/logging/LogField.cc
index d2dd816..bf3b380 100644
--- a/proxy/logging/LogField.cc
+++ b/proxy/logging/LogField.cc
@@ -55,7 +55,6 @@ static const char *container_names[] = {
   "record",
   "ms",
   "msdms",
-  "",
 };
 
 static const char *aggregate_names[] = {
@@ -65,7 +64,6 @@ static const char *aggregate_names[] = {
   "AVG",
   "FIRST",
   "LAST",
-  "",
 };
 
 // clang-format on
{noformat}

> log format errors on startup
> ----------------------------
>
>                 Key: TS-4659
>                 URL: https://issues.apache.org/jira/browse/TS-4659
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Logging
>            Reporter: James Peach
>
> Seeing these errors at startup:
> {noformat}
> [Jul 13 22:47:14.896] Server {0x7ffff7fde840} NOTE: <LogConfig.cc:1038 
> (read_xml_log_config)> 'Interval' attribute missing for LogFormat object 
> squid_seconds_only_timestamp that contains aggregate operators: %<cqts> 
> %<ttms> %<chi> %<crc>/%<pssc> %<psql> %<cqhm> %<cquc> %<caun> %<phr>/%<pqsn> 
> %<psct>
> [Jul 13 22:47:14.896] Server {0x7ffff7fde840} NOTE: <LogConfig.cc:1038 
> (read_xml_log_config)> 'Interval' attribute missing for LogFormat object 
> squid that contains aggregate operators: %<cqtq> %<ttms> %<chi> 
> %<crc>/%<pssc> %<psql> %<cqhm> %<cquc> %<caun> %<phr>/%<pqsn> %<psct>
> [Jul 13 22:47:14.896] Server {0x7ffff7fde840} NOTE: <LogConfig.cc:1038 
> (read_xml_log_config)> 'Interval' attribute missing for LogFormat object 
> common that contains aggregate operators: %<chi> - %<caun> [%<cqtn>] 
> "%<cqtx>" %<pssc> %<pscl>
> [Jul 13 22:47:14.896] Server {0x7ffff7fde840} NOTE: <LogConfig.cc:1038 
> (read_xml_log_config)> 'Interval' attribute missing for LogFormat object 
> extended that contains aggregate operators: %<chi> - %<caun> [%<cqtn>] 
> "%<cqtx>" %<pssc> %<pscl> %<sssc> %<sscl> %<cqbl> %<pqbl> %<cqhl> %<pshl> 
> %<pqhl> %<sshl> %<tts>
> [Jul 13 22:47:14.896] Server {0x7ffff7fde840} NOTE: <LogConfig.cc:1038 
> (read_xml_log_config)> 'Interval' attribute missing for LogFormat object 
> extended2 that contains aggregate operators: %<chi> - %<caun> [%<cqtn>] 
> "%<cqtx>" %<pssc> %<pscl> %<sssc> %<sscl> %<cqbl> %<pqbl> %<cqhl> %<pshl> 
> %<pqhl> %<sshl> %<tts> %<phr> %<cfsc> %<pfsc> %<crc>
> [Jul 13 22:47:14.896] Server {0x7ffff7fde840} WARNING: <LogConfig.cc:1353 
> (read_xml_log_config)> Format squid not in the global format list; cannot 
> create LogObject
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to