Skip to content

Commit

Permalink
fixup! revise DDS exception logging
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed May 24, 2024
1 parent c7fd724 commit 7b3fbf7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/rs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3101,24 +3101,24 @@ void rs2_log(rs2_log_severity severity, const char * message, rs2_error ** error
switch (severity)
{
case RS2_LOG_SEVERITY_DEBUG:
LOG_DEBUG(message);
LOG_DEBUG_STR(message);
break;
case RS2_LOG_SEVERITY_INFO:
LOG_INFO(message);
LOG_INFO_STR(message);
break;
case RS2_LOG_SEVERITY_WARN:
LOG_WARNING(message);
LOG_WARNING_STR(message);
break;
case RS2_LOG_SEVERITY_ERROR:
LOG_ERROR(message);
LOG_ERROR_STR(message);
break;
case RS2_LOG_SEVERITY_FATAL:
LOG_FATAL(message);
LOG_FATAL_STR(message);
break;
case RS2_LOG_SEVERITY_NONE:
break;
default:
LOG_INFO(message);
LOG_INFO_STR(message);
}
}
HANDLE_EXCEPTIONS_AND_RETURN(, severity, message)
Expand Down

0 comments on commit 7b3fbf7

Please sign in to comment.