mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-07 14:11:46 +00:00
uwsgi_rawlog()
This commit is contained in:
@@ -19,7 +19,7 @@ evdis = false
|
||||
ldap = false
|
||||
routing = false
|
||||
stackless = false
|
||||
debug = true
|
||||
debug = false
|
||||
unbit = false
|
||||
xml_implementation = libxml2
|
||||
plugins =
|
||||
|
||||
@@ -272,13 +272,13 @@ int init_uwsgi_app(int loader, void *arg1, struct wsgi_request *wsgi_req, PyThre
|
||||
}
|
||||
|
||||
if (!wsgi_req->script_name_len) {
|
||||
uwsgi_log(" (default app)");
|
||||
uwsgi_rawlog(" (default app)");
|
||||
uwsgi.default_app = id;
|
||||
}
|
||||
|
||||
uwsgi.apps_cnt++;
|
||||
|
||||
uwsgi_log("\n");
|
||||
uwsgi_rawlog("\n");
|
||||
|
||||
if (multiapp > 1) {
|
||||
for(i=1;i<multiapp;i++) {
|
||||
|
||||
@@ -1331,27 +1331,27 @@ uwsgi.shared->hooks[UWSGI_MODIFIER_PING] = uwsgi_request_ping; //100
|
||||
uwsgi_log("*** Operational MODE: ");
|
||||
if (uwsgi.threads > 1) {
|
||||
if (uwsgi.numproc > 1) {
|
||||
uwsgi_log("preforking+threaded");
|
||||
uwsgi_rawlog("preforking+threaded");
|
||||
} else {
|
||||
uwsgi_log("threaded");
|
||||
uwsgi_rawlog("threaded");
|
||||
}
|
||||
}
|
||||
#ifdef UWSGI_ASYNC
|
||||
else if (uwsgi.async > 1) {
|
||||
if (uwsgi.numproc > 1) {
|
||||
uwsgi_log("preforking+async");
|
||||
uwsgi_rawlog("preforking+async");
|
||||
} else {
|
||||
uwsgi_log("async");
|
||||
uwsgi_rawlog("async");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
else if (uwsgi.numproc > 1) {
|
||||
uwsgi_log("preforking");
|
||||
uwsgi_rawlog("preforking");
|
||||
} else {
|
||||
uwsgi_log("single process");
|
||||
uwsgi_rawlog("single process");
|
||||
}
|
||||
|
||||
uwsgi_log(" ***\n");
|
||||
uwsgi_rawlog(" ***\n");
|
||||
|
||||
#ifdef UWSGI_ERLANG
|
||||
if (uwsgi.erlang_node) {
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#define uwsgi_error(x) uwsgi_log("%s: %s [%s line %d]\n", x, strerror(errno), __FILE__, __LINE__);
|
||||
#define uwsgi_debug(x, ...) uwsgi_log("[uWSGI DEBUG] " x, __VA_ARGS__);
|
||||
#define uwsgi_rawlog(x) write(2, x, strlen(x))
|
||||
|
||||
#define wsgi_req_time ((wsgi_req->end_of_request.tv_sec * 1000000 + wsgi_req->end_of_request.tv_usec) - (wsgi_req->start_of_request.tv_sec * 1000000 + wsgi_req->start_of_request.tv_usec))/1000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user