Skip to content

Commit

Permalink
add severe error info. in the server log
Browse files Browse the repository at this point in the history
  • Loading branch information
kuron99 committed Nov 8, 2024
1 parent 997d8ca commit 0606b1b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/jogasaki/error/error_info_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ std::shared_ptr<error_info> create_error_info_with_stack_impl(
) {
auto info = std::make_shared<error_info>(code, message, filepath, position, stacktrace);
info->status(st);
VLOG_LP(log_trace) << "error_info:" << *info;
if(! stacktrace.empty()) {
// currently assuming the error is severe if stacktrace is provided
LOG_LP(ERROR) << "unexpected internal error " << *info;
} else {
VLOG_LP(log_trace) << "error_info:" << *info;
}
return info;
}

Expand Down

0 comments on commit 0606b1b

Please sign in to comment.