mstrucken opened a new pull request, #7955: URL: https://github.com/apache/storm/pull/7955
## What is the purpose of the change ShellBolt log level is always INFO due to failed check against Long after deseralizing ## How was the change tested I used the following minimal example: ```java String json = "{\"command\": \"log\", \"msg\": \"Testing ...\", \"level\": 4}"; try { JSONObject msg = (JSONObject) JSONValue.parseWithException(json); ShellMsg shellMsg = new ShellMsg(); String command = (String)msg.get("command"); if (command.equals("log")) { Object logLevelObj = msg.get("level"); if (logLevelObj != null && logLevelObj instanceof Number) { int logLevel = ((Number) logLevelObj).intValue(); shellMsg.setLogLevel(logLevel); } } } catch (ParseException e) { throw new RuntimeException(e); } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@storm.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org