From e55048b574f60d44bd4e02a314ababdf60f057ea Mon Sep 17 00:00:00 2001 From: "roberto@precise64" Date: Fri, 16 Mar 2012 13:07:06 +0100 Subject: [PATCH] fixed logdate --- uwsgi.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/uwsgi.c b/uwsgi.c index cddff5c5..0d3d73b9 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -3732,9 +3732,11 @@ void uwsgi_opt_signal(char *opt, char *value, void *foobar) { void uwsgi_opt_log_date(char *opt, char *value, void *foobar) { uwsgi.logdate = 1; - if (value) { - uwsgi.log_strftime = value; - } + if (value) { + if (strcasecmp("true", value) && strcasecmp("1", value) && strcasecmp("on", value) && strcasecmp("yes", value)) { + uwsgi.log_strftime = value; + } + } } void uwsgi_opt_chmod_socket(char *opt, char *value, void *foobar) {