From 3e9d2d2e7c34f99be8b87f2b1ad0612eaf012cc7 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 24 Mar 2020 13:23:35 +1000 Subject: Poor mans logging of FCGI, for now. --- src/sledjchisl/sledjchisl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sledjchisl/sledjchisl.c') 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; // 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. // Now that we are using spawn-fcgi, all the logs are going to STDERR, which we can capture and write to a file. +// Unfortunately spawn-fcgi in deamon mode sends all the output to /dev/null or something. // A better idea, when we spawn tmux or spawn-fcgi, capture STDERR, full log everything to that, filtered log to the tmux console (STDOUT). // Then we can use STDOUT / STDIN to run the console stuff. -- cgit v1.1