Reputation: 792
I am trying to disable a specific warning, as it is obnoxiously spamming my console and my dashboard logs:
org.datanucleus.store.types.sco.SCOUtils newSCOInstance
WARNING: Creation of backed wrapper for <package.class.field> unsupported,
so trying simple wrapper
I have attempted setting log4j to ERROR level on all Datanucleus messages, but to no avail. Here are my settings for log4j:
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n
log4j.category.DataNucleus=ERROR, A1
Which leads me to think that these warnings are coming from another logger... any idea how to disable them/filter them out?
EDIT 1: Here is some more info about the problematic field: More precisely, it is package.EntityA.field, where field is:
@OneToMany(cascade = CascadeType.ALL)
private Map<String,EntityB> field;
I can't see why this would be classified as a "not totally supported" type.
EDIT 2: I switched back to java.util.logging, and tried the following:
handlers = java.util.logging.ConsoleHandler
.level = WARNING
Datanucleus.level = WARNING
org.datanucleus.store.types.sco.SCOUtils.level = OFF
The result is still the same. I even tried setting Datanucleus.level to OFF, but all the messages are logged anyway (both in the development console, and in the GAE dashboard logs). And yes, I properly configured appengine-web.xml to use my logging configuration.
Upvotes: 0
Views: 449
Reputation: 15577
clearly a message of that nature is a sign of a problem, and "package.class.field" is of some not totally supported type. I fail to see how this can be considered "obnoxious".
DataNucleus logs using standard logging packages (log4j if it is found in the CLASSPATH, otherwise java.util.logging), so if log4j is not present then you need to configure java.util.logging
Upvotes: -1