Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parser_json: fix wrong LoadError warning
If Oj is not installed, LoadError with the empty message is raised. So, the current condition `/\boj\z/.match?(ex.message)` does not work and the following meaningless warning is displayed. {datetime} [warn]: #x {id} LoadError After this fix, the log message will be: {datetime} [info]: #x {id} Oj is not installed, and failing back to Yajl for json parser Signed-off-by: Daijiro Fukuda <[email protected]>
- Loading branch information