aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/.sledjChisl.conf.lua2
-rw-r--r--src/sledjchisl/sledjchisl.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/src/.sledjChisl.conf.lua b/src/.sledjChisl.conf.lua
index a817995..d6fad37 100644
--- a/src/.sledjChisl.conf.lua
+++ b/src/.sledjChisl.conf.lua
@@ -10,8 +10,8 @@ end
10config = 10config =
11{ 11{
12 ["performance"] = "default"; -- fast, balanced, default, lean 12 ["performance"] = "default"; -- fast, balanced, default, lean
13 ["debug"] = true;
14 ["scRoot"] = "/opt/opensim_SC"; 13 ["scRoot"] = "/opt/opensim_SC";
14 ["debug"] = false;
15 ["scUser"] = "opensimsc"; 15 ["scUser"] = "opensimsc";
16 ["Tconsole"] = "SledjChisl"; 16 ["Tconsole"] = "SledjChisl";
17 ["Tsocket"] = "opensim-tmux.socket"; 17 ["Tsocket"] = "opensim-tmux.socket";
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index 9297772..6224e70 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -486,7 +486,7 @@ int newbieTimeOut = 30;
486float loadAverageInc = 0.7; 486float loadAverageInc = 0.7;
487int simTimeOut = 45; 487int simTimeOut = 45;
488int bulkSims = 0; 488int bulkSims = 0;
489boolean DEBUG = TRUE; 489boolean DEBUG = FALSE;
490qhashtbl_t *mimeTypes; 490qhashtbl_t *mimeTypes;
491qlist_t *dbRequests; 491qlist_t *dbRequests;
492 492
@@ -523,6 +523,9 @@ void logMe(int v, char *format, ...)
523 time_t curtime; 523 time_t curtime;
524 char date[DATE_TIME_LEN]; 524 char date[DATE_TIME_LEN];
525 525
526 if ((!DEBUG) && (4 < v))
527 return;
528
526 va_start(va, format); 529 va_start(va, format);
527 va_copy(va2, va); 530 va_copy(va2, va);
528 // How long is it? 531 // How long is it?
@@ -6848,7 +6851,7 @@ jit library is loaded or the JIT compiler will not be activated.
6848 } 6851 }
6849 } 6852 }
6850 DEBUG = configs->getint(configs, "debug"); 6853 DEBUG = configs->getint(configs, "debug");
6851 D("Setting DEBUG = %d", DEBUG); 6854 I("Setting DEBUG = %d", DEBUG);
6852 if ((vd = configs->get (configs, "loadAverageInc", NULL, false)) != NULL) {loadAverageInc = *((float *) vd); D("Setting loadAverageInc = %f", loadAverageInc);} 6855 if ((vd = configs->get (configs, "loadAverageInc", NULL, false)) != NULL) {loadAverageInc = *((float *) vd); D("Setting loadAverageInc = %f", loadAverageInc);}
6853 if ((vd = configs->get (configs, "simTimeOut", NULL, false)) != NULL) {simTimeOut = (int) *((float *) vd); D("Setting simTimeOut = %d", simTimeOut);} 6856 if ((vd = configs->get (configs, "simTimeOut", NULL, false)) != NULL) {simTimeOut = (int) *((float *) vd); D("Setting simTimeOut = %d", simTimeOut);}
6854 if ((vd = configs->get (configs, "bulkSims", NULL, false)) != NULL) {bulkSims = (int) *((float *) vd); D("Setting bulkSims = %d", bulkSims);} 6857 if ((vd = configs->get (configs, "bulkSims", NULL, false)) != NULL) {bulkSims = (int) *((float *) vd); D("Setting bulkSims = %d", bulkSims);}