test exception handling
add json to log message