suppress timestamp message until we can figure out where it is coming from,
authorRussell Bryant <russell@russellbryant.com>
Tue, 19 Jul 2005 14:08:19 +0000 (14:08 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 19 Jul 2005 14:08:19 +0000 (14:08 +0000)
since it appears that this isn't causing a real problem

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6159 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils.c

diff --git a/utils.c b/utils.c
index 2043e62..a1dfbb0 100755 (executable)
--- a/utils.c
+++ b/utils.c
@@ -30,6 +30,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/io.h"
 #include "asterisk/logger.h"
 #include "asterisk/md5.h"
+#include "asterisk/options.h"
 
 #define AST_API_MODULE         /* ensure that inlinable API functions will be built in this module if required */
 #include "asterisk/strings.h"
@@ -506,8 +507,9 @@ static struct timeval tvfix(struct timeval a)
                a.tv_sec += a.tv_usec % ONE_MILLION;
                a.tv_usec %= ONE_MILLION;
        } else if (a.tv_usec < 0) {
-               ast_log(LOG_ERROR, "warning negative timestamp %ld.%ld\n",
-                       a.tv_sec, a.tv_usec);
+               if (option_debug)
+                       ast_log(LOG_DEBUG, "warning negative timestamp %ld.%ld\n",
+                               a.tv_sec, a.tv_usec);
                a.tv_usec = 0;
        }
        return a;