Skip to content

Clean up certifier plugin debug messages. - #9975

Merged
jpeach merged 1 commit into
apache:masterfrom
jpeach:certifier-log-msg
Aug 11, 2023
Merged

Clean up certifier plugin debug messages.#9975
jpeach merged 1 commit into
apache:masterfrom
jpeach:certifier-log-msg

Conversation

@jpeach

@jpeach jpeach commented Jul 9, 2023

Copy link
Copy Markdown
Contributor

The certifier plugin manually write out the function name in debug messages, and these were wrong in some cases. Clean this up to use func and a more consistent message format. Remove the "t" mode from fopen call, which is a Windows-ism.

@jpeach
jpeach requested review from bneradt, bryancall and randall July 9, 2023 01:13
@jpeach jpeach added the Cleanup label Jul 9, 2023

@bneradt bneradt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for cleaning this up.

@lzx404243 : can you review this too?

Comment thread plugins/certifier/certifier.cc
@bneradt

bneradt commented Jul 9, 2023

Copy link
Copy Markdown
Contributor

Looks like the autest might need an expected log expression update:
https://ci.trafficserver.apache.org/job/Github_Builds/job/autest/9715/console

     file /tmp/sandbox/certifier/ts2/log/traffic.out : Should reuse the existing certificate - Failed
        Reason: Contents of /tmp/sandbox/certifier/ts2/log/traffic.out did not contains expression: "Reuse existing cert and context for www.tls.com"

@bneradt bneradt added this to the 10.0.0 milestone Jul 9, 2023
@jpeach
jpeach force-pushed the certifier-log-msg branch from e2d5773 to d5036f6 Compare July 10, 2023 09:25
@jpeach

jpeach commented Jul 10, 2023

Copy link
Copy Markdown
Contributor Author

[approve ci]

@lzx404243 lzx404243 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the clean up. Looks good overall. Some minor comments.

Comment thread plugins/certifier/certifier.cc Outdated
Comment thread plugins/certifier/certifier.cc Outdated
Comment thread tests/gold_tests/pluginTest/certifier/certifier.test.py
Comment thread plugins/certifier/certifier.cc Outdated
Comment thread plugins/certifier/certifier.cc
@bryancall bryancall added the certifier certifier plugin label Jul 10, 2023
@jpeach
jpeach force-pushed the certifier-log-msg branch from d5036f6 to ec67681 Compare July 11, 2023 00:04
@jpeach

jpeach commented Jul 11, 2023

Copy link
Copy Markdown
Contributor Author

[approve ci]

The certifier plugin manually write out the function name in debug
messages, and these were wrong in some cases. Clean this up to use
__func__ and a more consistent message format. Remove the "t" mode
from fopen call, which is a Windows-ism.

Signed-off-by: James Peach <jpeach@apache.org>
@jpeach
jpeach force-pushed the certifier-log-msg branch from ec67681 to 3038646 Compare July 11, 2023 09:10
@bryancall

Copy link
Copy Markdown
Contributor

[approve ci]

@ywkaras

ywkaras commented Aug 8, 2023

Copy link
Copy Markdown

@bneradt is this good now?

@jpeach
jpeach merged commit cc15797 into apache:master Aug 11, 2023
@jpeach
jpeach deleted the certifier-log-msg branch August 11, 2023 01:27
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jun 3, 2024
* asf/master: (221 commits)
  LSan: Fix leak of test_Metrics (apache#10179)
  LSan: Fix memory leak of test_EventSystem (apache#10178)
  LSan: Fix memory leak of test_X509HostnameValidator (apache#10161)
  Remove cqtx log field (apache#10111)
  Require ATS plugins to be compiled with C++17. (apache#10007)
  Fix conf_remap plugin build on macOS (apache#10177)
  libswoc: Update to 1.5.4 (apache#10155)
  Makes cmake build again, on macOS (apache#10172)
  Check SNI in h3 (apache#10184)
  Remove autoconf headers during CMake configuration (apache#10173)
  test_QUICLossDetector.cc: Add back get_hrtime() (apache#10185)
  ink_ink_get_hrtime -> ink_get_hrtime (apache#10182)
  mgmt: make libconfigmanager a true static library (apache#10181)
  Make sure that the thread local time is updated timely (apache#10163)
  Unrequire remap rules for OCSP (apache#10146)
  cache_range test performance improvement (apache#10170)
  Clean up certifier plugin debug messages. (apache#9975)
  cmake: add check for clock_gettime (apache#10169)
  Remove Http3NoError allocations (apache#10165)
  Fix Throttler initialization. (apache#10154)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

certifier certifier plugin Cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants