sel-logger package issue
Hi,
I found that the sel-logger service crashed when the "Value out of range"[1] exception occurred.
It is because the try-catch[2] does not catch the exception type(std::out_of_range).
Therefore, you can change the catch type to "std::exception" to catch all the exception or only catch the "std::out_of_range" type.
BRs,
Will
Hi Will,
Quoted 8 lines · Will Liang (梁永鉉)
Hi,
I found that the sel-logger service crashed when the "Value out of range"[1] exception occurred.
It is because the try-catch[2] does not catch the exception
type(std::out_of_range).
Therefore, you can change the catch type to "std::exception" to catch all the exception or only catch the "std::out_of_range" type.
Good catch! Since the error message is generic, I'm okay with catching std::exception (unless others have strong feelings about it). Please submit a patch with the fix.
Thanks!
-Jason