Selaa lähdekoodia

squelch silly warning about clock time

David Rose 17 vuotta sitten
vanhempi
sitoutus
2d0ade8276
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5 2
      panda/src/putil/clockObject.cxx

+ 5 - 2
panda/src/putil/clockObject.cxx

@@ -159,8 +159,11 @@ set_mode(ClockObject::Mode mode) {
 void ClockObject::
 set_real_time(double time) {
 #ifdef NOTIFY_DEBUG
-  if (this == _global_clock) {
-    util_cat.warning()
+  // This is only a debug message, since it happens during normal
+  // development, particularly at startup, or whenever you break into
+  // the task loop.
+  if (util_cat.is_debug() && this == _global_clock) {
+    util_cat.debug()
       << "Adjusting global clock's real time by " << time - get_real_time()
       << " seconds.\n";
   }