diff --git a/panda/src/putil/bamReader.cxx b/panda/src/putil/bamReader.cxx index e7ee6a7ae1..27392fe761 100644 --- a/panda/src/putil/bamReader.cxx +++ b/panda/src/putil/bamReader.cxx @@ -744,8 +744,10 @@ p_read_object() { // Just some sanity checks if (object == (TypedWritable *)NULL) { - bam_cat.info() - << "Unable to create an object of type " << type << endl; + if (bam_cat.is_debug()) { + bam_cat.debug() + << "Unable to create an object of type " << type << endl; + } } else if (object->get_type() != type) { if (_new_types.find(type) != _new_types.end()) {