Fix: use term factor unless disabled
[pazpar2-moved-to-github.git] / src / pazpar2.c
index 4e4b1ef..6680662 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of Pazpar2.
-   Copyright (C) 2006-2010 Index Data
+   Copyright (C) 2006-2011 Index Data
 
 Pazpar2 is free software; you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free
@@ -171,8 +171,7 @@ static int sc_main(
         yaz_log(YLOG_FATAL, "Configuration must be given with option -f");
         return 1;
     }
-    if (global_parameters.debug_mode > 1)
-        pazpar2_mutex_enable_debug(1);
+    pazpar2_mutex_init();
     
     config = config_create(config_fname, global_parameters.dump_records);
     if (!config)