From 2d0ade8276b8a2bf90a539c4b38ae208b9ceba19 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sun, 15 Mar 2009 13:03:40 +0000 Subject: [PATCH] squelch silly warning about clock time --- panda/src/putil/clockObject.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/panda/src/putil/clockObject.cxx b/panda/src/putil/clockObject.cxx index 2ef6685679..437d4e55dc 100644 --- a/panda/src/putil/clockObject.cxx +++ b/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"; }