Skip to content

Commit

Permalink
stop spamming the logs when JodaDateTimeDeserializer is a NOOP
Browse files Browse the repository at this point in the history
  • Loading branch information
maxaf committed Sep 7, 2010
1 parent 6ce4b87 commit b4e0f43
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -169,10 +169,7 @@ trait JodaDateTimeDeserializer extends MongoConversionHelper {

def transform(o: AnyRef): AnyRef = o match {
case jdkDate: java.util.Date => new DateTime(jdkDate)
case d: DateTime => {
log.warning("Transformer got an actual JodaDateTime DateTime?")
d
}
case d: DateTime => d
case _ => o
}
}
Expand Down

0 comments on commit b4e0f43

Please sign in to comment.