uwsgi_rawlog()

This commit is contained in:
roberto@mrspurr
2011-01-07 23:17:34 +01:00
parent 8b21fb72b2
commit 500e4e41fe
4 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ evdis = false
ldap = false
routing = false
stackless = false
debug = true
debug = false
unbit = false
xml_implementation = libxml2
plugins =
+2 -2
View File
@@ -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++) {
+7 -7
View File
@@ -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) {
+1
View File
@@ -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