Skip to content

Commit

Permalink
update(libsinsp): raise error severity
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Guerra <luca@guerra.sh>
  • Loading branch information
LucaGuerra authored and poiana committed Jul 22, 2024
1 parent ee4e2c8 commit 88a5eb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userspace/libsinsp/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2184,8 +2184,8 @@ void sinsp_evt_param::throw_invalid_len_error(size_t requested_length) const
<< ": expected length " << requested_length << ", found " << m_len;
std::string error_string = ss.str();

libsinsp_logger()->log(error_string, sinsp_logger::SEV_DEBUG);
libsinsp_logger()->log("parameter raw data: \n" + buffer_to_multiline_hex(m_val, m_len), sinsp_logger::SEV_DEBUG);
libsinsp_logger()->log(error_string, sinsp_logger::SEV_ERROR);
libsinsp_logger()->log("parameter raw data: \n" + buffer_to_multiline_hex(m_val, m_len), sinsp_logger::SEV_ERROR);

throw sinsp_exception(error_string);
}
Expand Down

0 comments on commit 88a5eb7

Please sign in to comment.