added --threaded-logger

This commit is contained in:
roberto@oneiric64
2011-12-14 09:10:26 +01:00
parent 8e3e3cf27b
commit e32185cc14
4 changed files with 656 additions and 599 deletions
+654 -595
View File
File diff suppressed because it is too large Load Diff
-4
View File
@@ -19,10 +19,6 @@ ssize_t uwsgi_syslog_logger(struct uwsgi_logger *ul, char *message, size_t len)
syslog_opts = uwsgi.choosen_logger_arg;
}
#ifdef UWSGI_DEBUG
uwsgi_log("opening syslog\n");
#endif
openlog(syslog_opts, 0, LOG_DAEMON);
ul->configured = 1;
+1
View File
@@ -232,6 +232,7 @@ static struct option long_base_options[] = {
{"log-syslog", optional_argument, 0, LONG_ARGS_LOG_SYSLOG},
{"log-socket", required_argument, 0, LONG_ARGS_LOG_SOCKET},
{"logger", required_argument, 0, LONG_ARGS_LOGGER},
{"threaded-logger", no_argument, &uwsgi.threaded_logger, 1},
#ifdef UWSGI_ZEROMQ
{"log-zeromq", required_argument, 0, LONG_ARGS_LOG_ZEROMQ},
#endif
+1
View File
@@ -1221,6 +1221,7 @@ struct uwsgi_server {
struct uwsgi_logger *choosen_logger;
char *requested_logger;
char *choosen_logger_arg;
int threaded_logger;
struct uwsgi_daemon *daemons;
int daemons_cnt;