diff options
author | onefang | 2021-07-24 00:53:32 +1000 |
---|---|---|
committer | onefang | 2021-07-24 00:53:32 +1000 |
commit | 33e1a96da59953acec368ed4bc4e8011f6d34f0b (patch) | |
tree | 815ca0fd7fcc5cbc68af13a2a984cba844224d94 /src/sledjchisl/sledjchisl.c | |
parent | Auto add groups for all hypergridders. (diff) | |
download | opensim-SC-33e1a96da59953acec368ed4bc4e8011f6d34f0b.zip opensim-SC-33e1a96da59953acec368ed4bc4e8011f6d34f0b.tar.gz opensim-SC-33e1a96da59953acec368ed4bc4e8011f6d34f0b.tar.bz2 opensim-SC-33e1a96da59953acec368ed4bc4e8011f6d34f0b.tar.xz |
Don't actually print debug stuff if debug is turned off.
Also default to debug off.
Diffstat (limited to '')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; | |||
486 | float loadAverageInc = 0.7; | 486 | float loadAverageInc = 0.7; |
487 | int simTimeOut = 45; | 487 | int simTimeOut = 45; |
488 | int bulkSims = 0; | 488 | int bulkSims = 0; |
489 | boolean DEBUG = TRUE; | 489 | boolean DEBUG = FALSE; |
490 | qhashtbl_t *mimeTypes; | 490 | qhashtbl_t *mimeTypes; |
491 | qlist_t *dbRequests; | 491 | qlist_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);} |