|
@@ -24,19 +24,17 @@ enum
|
|
|
TLOG_DEBUG,
|
|
|
};
|
|
|
|
|
|
-#define TIME_STAMP_LOG
|
|
|
//#define LOG_ALWAYS_FFLUSH
|
|
|
#define DYNA_LOG_LEVEL
|
|
|
+#define SET_DEBUG_LOG
|
|
|
|
|
|
-//#define SET_DEBUG_LOG
|
|
|
-
|
|
|
-/* Set if DYNALOG is set the maxium compiled log level */
|
|
|
+/* Set if DYNALOG is set the maximum compiled log level */
|
|
|
#ifndef MAXIMUM_DEBUG_LEVEL
|
|
|
|
|
|
#ifndef SET_DEBUG_LOG
|
|
|
#define MAXIMUM_DEBUG_LEVEL TLOG_NORMAL
|
|
|
#else
|
|
|
-#define MAXIMUM_DEBUG_LEVEL TLOG_VERBOSE
|
|
|
+#define MAXIMUM_DEBUG_LEVEL TLOG_DEBUG
|
|
|
#endif
|
|
|
|
|
|
#endif /* MAXIMUM_DEBUG_LEVEL */
|
|
@@ -66,7 +64,6 @@ extern int MAX_DEBUG_LEVEL;
|
|
|
# define MAX_DEBUG_LEVEL DEFAULT_DEBUG_LEVEL
|
|
|
# endif
|
|
|
#endif
|
|
|
-extern char use_syslog;
|
|
|
|
|
|
#define log(_level, _user, _fmt, ...)\
|
|
|
if (_level <= MAXIMUM_DEBUG_LEVEL)\
|