summaryrefslogtreecommitdiff
path: root/utils/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/log.c')
-rw-r--r--utils/log.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/utils/log.c b/utils/log.c
index eb7bb9a7d..03e1673cd 100644
--- a/utils/log.c
+++ b/utils/log.c
@@ -29,7 +29,7 @@
#include "utils/log.h"
/** flag to enable verbose logging */
-bool verbose_log = false;
+bool verbose_log = true;
/** The stream to which logging is sent */
static FILE *logfile;
@@ -289,31 +289,5 @@ nslog_finalise()
}
#ifdef WITH_NSLOG
nslog_cleanup();
-
- gettimeofday(&now_tv, NULL);
-
- timeval_subtract(&tv, &now_tv, &start_tv);
-
- snprintf(buff, sizeof(buff),"(%ld.%06ld)",
- (long)tv.tv_sec, (long)tv.tv_usec);
-
- return buff;
-}
-
-void nslog_log(const char *file, const char *func, int ln, const char *format, ...)
-{
- va_list ap;
-
- fprintf(logfile, "%s %s:%i %s: ", nslog_gettime(), file, ln, func);
-
- va_start(ap, format);
-
- vfprintf(logfile, format, ap);
-
- va_end(ap);
-
- fputc('\n', logfile);
-}
-
#endif
}