[
https://issues.apache.org/jira/browse/TS-4740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15421603#comment-15421603
]
James Peach commented on TS-4740:
---------------------------------
I think you should add a helper function to {{cmd/traffic_manager/metrics.cc}}
and call it from {{metrics_binding_initialize()}}. Either NOTE or WARNING would
be an OK level, though I'd tend towards NOTE myself.
> Produce a warning if old metrics config is still in place
> ---------------------------------------------------------
>
> Key: TS-4740
> URL: https://issues.apache.org/jira/browse/TS-4740
> Project: Traffic Server
> Issue Type: Improvement
> Components: Metrics
> Reporter: Leif Hedstrom
> Labels: newbie
> Fix For: 7.0.0
>
>
> As of v7.0.0, the metrics config is migrated from XML to Lua. It might be
> nice that upon loading the Lua file, if it also sees the old XML file, it'd
> produce a warning. Something like
> {code}
> if (exists(stats.config.xml)) { /* Pseudo code, obviously do it right */
> Warning("Ignoring the old stats.config.xml configuration, loading
> metrics.config instead");
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)