-#if TRACE_XMALLOC
- yaz_log (LOG_MALLOC, "%s:%d: xstrdup(s=%d) %p", file, line, strlen(s)+1, p);
-#endif
+ if (!log_level_initialized)
+ {
+ log_level=yaz_log_module_level("malloc");
+ log_level_initialized=1;
+ }
+
+ if (log_level)
+ yaz_log (log_level, "%s:%d: xstrdup(s=%d) %p", file, line, strlen(s)+1, p);
+