Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Fixed logging.yaml generation to properly add a newline after filters are emitted.#4846

Merged
rob05c merged 1 commit intoapache:masterfrom
alficles:logging-yaml-filter-fix
Jun 30, 2020
Merged

Fixed logging.yaml generation to properly add a newline after filters are emitted.#4846
rob05c merged 1 commit intoapache:masterfrom
alficles:logging-yaml-filter-fix

Conversation

@alficles
Copy link
Contributor

Fixes #4845.

What does this PR (Pull Request) do?

Which Traffic Control components are affected by this PR?

  • Traffic Ops ORT

As a bug fix, this simply aligns the code with the intention expressed in the documentation. No update is required.

What is the best way to verify this PR?

Use the reproduction steps is #4845 to verify that after the patch, the bug no longer occurs.

If this is a bug fix, what versions of Traffic Control are affected?

Not sure precisely, but this bug was almost certainly introduced with the switch to atstccfg.

The following criteria are ALL met by this PR

  • This PR includes tests OR I have explained why tests are unnecessary
  • This PR includes documentation OR I have explained why documentation is unnecessary
  • This PR includes an update to CHANGELOG.md OR such an update is not necessary
  • This PR includes any and all required license headers
  • This PR ensures that database migration sequence is correct OR this PR does not include a database migration
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

Additional Information

@mitchell852 mitchell852 added Traffic Ops ORT *DEPRECATED* related to the traffic_ops_ort.pl script bug something isn't working as intended labels Jun 30, 2020
Copy link
Member

@rob05c rob05c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Code looks good. Tested, ran ORT against a production-like TO with multiple filters, observed filters have a newline before the next -mode, observed broken -mode on the same line without the fix.

@rob05c rob05c merged commit fd6e0dd into apache:master Jun 30, 2020
mitchell852 pushed a commit to mitchell852/trafficcontrol that referenced this pull request Sep 2, 2020
rawlinp pushed a commit to rawlinp/trafficcontrol that referenced this pull request Nov 2, 2020
rawlinp added a commit that referenced this pull request Nov 2, 2020
… are emitted. (#4846) (#5232)

Fixes #4845.

(cherry picked from commit fd6e0dd)

Co-authored-by: alficles <alficles@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug something isn't working as intended Traffic Ops ORT *DEPRECATED* related to the traffic_ops_ort.pl script

Projects

None yet

Development

Successfully merging this pull request may close these issues.

atstccfg writes corrupt logging.yaml when filters are used.

3 participants