[SERVER-79578] Log error in error message 20245 Created: 01/Aug/23  Updated: 25/Jan/24  Resolved: 28/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Task Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Niaz Pavel
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-20245 Use candidate index in last vote inst... Closed
Assigned Teams:
Server Security
Backwards Compatibility: Fully Compatible
Sprint: Security 2023-11-13, Security 2023-11-27, Security 2023-12-11
Participants:

 Description   

The Status should be output in error message 20245. It should output the error per logging standards in logging.md.

                      "__error__"_attr = status); 

See https://github.com/mongodb/mongo/blob/a7e8bb8a9b4c4dac7d4c4e5a0dbc839d7fe4e4d1/src/mongo/db/auth/authorization_session_impl.cpp#L679-L686



 Comments   
Comment by Niaz Pavel [ 06/Dec/23 ]

The changes were committed using the wrong Jira ticket name SERVER-20245. Below is the link:

Author:

{'name': 'Niaz Pavel', 'email': 'niaz.pavel@mongodb.com', 'username': 'niazpavelatmongo'}

Message: SERVER-20245 Log error in error message 20245.
Branch: master
https://github.com/mongodb/mongo/commit/2bf9d41da737a3f858c1b898b378cd7a24da7f56

Generated at Thu Feb 08 06:41:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.