Skip to content

Conversation

@jpeach
Copy link
Contributor

@jpeach jpeach commented Jul 9, 2023

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
Copy link
Contributor

@bneradt bneradt left a comment

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?

@bneradt
Copy link
Contributor

bneradt commented Jul 9, 2023

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
Copy link
Contributor Author

jpeach commented Jul 10, 2023

[approve ci]

Copy link
Collaborator

@lzx404243 lzx404243 left a comment

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.

@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
Copy link
Contributor Author

jpeach commented Jul 11, 2023

[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
Contributor

[approve ci]

@ywkaras
Copy link
Contributor

ywkaras commented Aug 8, 2023

@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