[json-lib-user] Log level: warn vs. info for skipped properties
Brought to you by:
aalmiray
From: Jonathan <jso...@ki...> - 2009-04-14 20:24:18
|
Currently, json-lib will log a message at warn level if during the process of converting an object to json if finds a property descriptor without an attendant write method. See lines 362 and 698 of JSONObject: log.warn( "Property '" + key + "' of "+ root.getClass()+" has no write method. SKIPPED." ); There are several valid, expected reasons why this condition might occur. For instance, it turns out that the javaassist classes created by Hibernate often run into this situation. Would you consider changing the log level to info for these statements? It seems a better fit for this particular condition: http://en.wikipedia.org/wiki/Java_Logging_Frameworks#Level What do you think? Jonathan |