diff options
-rwxr-xr-x | src/BuildIt.sh | 2 | ||||
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/BuildIt.sh b/src/BuildIt.sh index d310691..22716be 100755 --- a/src/BuildIt.sh +++ b/src/BuildIt.sh | |||
@@ -128,6 +128,6 @@ make || exit 1 | |||
128 | popd >/dev/null | 128 | popd >/dev/null |
129 | 129 | ||
130 | sudo rm -f /opt/opensim_SC/var/cache/sledjchisl.socket | 130 | sudo rm -f /opt/opensim_SC/var/cache/sledjchisl.socket |
131 | sudo spawn-fcgi -n -u opensimsc -s /opt/opensim_SC/var/cache/sledjchisl.socket -M 0660 -G www-data -- /usr/bin/valgrind --leak-check=full build/toybox/generated/unstripped/toybox sledjchisl | 131 | sudo spawn-fcgi -n -u opensimsc -s /opt/opensim_SC/var/cache/sledjchisl.socket -M 0660 -G www-data -- /usr/bin/valgrind --leak-check=full build/toybox/generated/unstripped/toybox sledjchisl 2>&1 | tee log.txt |
132 | #sudo spawn-fcgi -n -u opensimsc -s /opt/opensim_SC/var/cache/sledjchisl.socket -M 0660 -G www-data -- /usr/bin/valgrind --leak-check=full --show-leak-kinds=all build/toybox/generated/unstripped/toybox sledjchisl | 132 | #sudo spawn-fcgi -n -u opensimsc -s /opt/opensim_SC/var/cache/sledjchisl.socket -M 0660 -G www-data -- /usr/bin/valgrind --leak-check=full --show-leak-kinds=all build/toybox/generated/unstripped/toybox sledjchisl |
133 | ##sudo spawn-fcgi -n -u opensimsc -s /opt/opensim_SC/var/cache/sledjchisl.socket -M 0660 -G www-data -- /usr/bin/ddd build/toybox/generated/unstripped/toybox sledjchisl | 133 | ##sudo spawn-fcgi -n -u opensimsc -s /opt/opensim_SC/var/cache/sledjchisl.socket -M 0660 -G www-data -- /usr/bin/ddd build/toybox/generated/unstripped/toybox sledjchisl |
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 83a4774..5b4c207 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -474,6 +474,7 @@ qlist_t *dbRequests; | |||
474 | 474 | ||
475 | // TODO - log to file. The problem is we don't know where to log until after we have loaded the configs, and before that we are spewing log messages. | 475 | // TODO - log to file. The problem is we don't know where to log until after we have loaded the configs, and before that we are spewing log messages. |
476 | // Now that we are using spawn-fcgi, all the logs are going to STDERR, which we can capture and write to a file. | 476 | // Now that we are using spawn-fcgi, all the logs are going to STDERR, which we can capture and write to a file. |
477 | // Unfortunately spawn-fcgi in deamon mode sends all the output to /dev/null or something. | ||
477 | // A better idea, when we spawn tmux or spawn-fcgi, capture STDERR, full log everything to that, filtered log to the tmux console (STDOUT). | 478 | // A better idea, when we spawn tmux or spawn-fcgi, capture STDERR, full log everything to that, filtered log to the tmux console (STDOUT). |
478 | // Then we can use STDOUT / STDIN to run the console stuff. | 479 | // Then we can use STDOUT / STDIN to run the console stuff. |
479 | 480 | ||