Skip to content

Commit

Permalink
DEBUG: reduce log level in case a responder asks for unknown domain
Browse files Browse the repository at this point in the history
Addition to 718fed9

Reviewed-by: Alejandro López <[email protected]>
Reviewed-by: Iker Pedrosa <[email protected]>
(cherry picked from commit ab2671c)
(cherry picked from commit 8dcf23f)
  • Loading branch information
alexey-tikhonov committed Nov 19, 2024
1 parent 3e3bd02 commit 4acd589
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/responder/common/cache_req/plugins/cache_req_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ cache_req_common_process_dp_reply(struct cache_req *cr,
bool bret;

if (ret != EOK) {
CACHE_REQ_DEBUG(SSSDBG_IMPORTANT_INFO, cr,
int msg_level = SSSDBG_IMPORTANT_INFO;
/* ERR_DOMAIN_NOT_FOUND: 'ad_enabled_domains' option can exclude domain */
if (ret == ERR_DOMAIN_NOT_FOUND) msg_level = SSSDBG_CONF_SETTINGS;
CACHE_REQ_DEBUG(msg_level, cr,
"Could not get account info [%d]: %s\n",
ret, sss_strerror(ret));
CACHE_REQ_DEBUG(SSSDBG_TRACE_FUNC, cr,
Expand Down
2 changes: 2 additions & 0 deletions src/sbus/router/sbus_router_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ static void sbus_issue_request_done(struct tevent_req *subreq)
} else {
int msg_level = SSSDBG_OP_FAILURE;
if (ret == ERR_MISSING_DP_TARGET) msg_level = SSSDBG_FUNC_DATA;
/* ERR_DOMAIN_NOT_FOUND: 'ad_enabled_domains' option can exclude domain */
if (ret == ERR_DOMAIN_NOT_FOUND) msg_level = SSSDBG_CONF_SETTINGS;
DEBUG(msg_level, "%s.%s: Error [%d]: %s\n",
meta.interface, meta.member, ret, sss_strerror(ret));
}
Expand Down

0 comments on commit 4acd589

Please sign in to comment.