Skip to content

Commit

Permalink
debug: suppress backtrace for backend errors
Browse files Browse the repository at this point in the history
Only log a message in the frontend without a backtrace if the backend
returns an error.

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
  • Loading branch information
sumit-bose authored and pbrezina committed Sep 24, 2021
1 parent e92988a commit ca8b655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/responder/common/cache_req/plugins/cache_req_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ cache_req_common_process_dp_reply(struct cache_req *cr,
}

if (err_maj) {
CACHE_REQ_DEBUG(SSSDBG_OP_FAILURE, cr,
CACHE_REQ_DEBUG(SSSDBG_IMPORTANT_INFO, cr,
"Data Provider Error: %u, %u, %s\n",
(unsigned int)err_maj, (unsigned int)err_min, err_msg);
CACHE_REQ_DEBUG(SSSDBG_TRACE_FUNC, cr,
Expand Down

0 comments on commit ca8b655

Please sign in to comment.