cherokee / webserver

Cherokee Web Server
GNU General Public License v2.0
563 stars 104 forks source link

Add the current time to an error #467

Open danielniccoli opened 11 years ago

danielniccoli commented 11 years ago

Original author: ste...@konink.de (May 14, 2009 20:23:50)

What steps will reproduce the problem?

  1. review an error
  2. there is no date/time
  3. user doesn't know when the error occurred

Original issue: http://code.google.com/p/cherokee/issues/detail?id=463

danielniccoli commented 11 years ago

From skar...@gmail.com on May 14, 2009 21:50:35 I'd use cherokee.error log file, like Apache:

%<------%<------%<------%<------%<------%<------ [Tue May 05 20:57:23 2009] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch configured -- resuming normal operations [Wed May 06 23:23:26 2009] [notice] caught SIGTERM, shutting down [Thu May 07 14:13:09 2009] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch configured -- resuming normal operations [Thu May 07 14:20:04 2009] [notice] Graceful restart requested, doing restart apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [Thu May 07 14:20:04 2009] [warn] NameVirtualHost myhost.net:0 has no VirtualHosts [Thu May 07 14:20:04 2009] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch configured -- resuming normal operations [Thu May 07 22:06:34 2009] [notice] caught SIGTERM, shutting down [Fri May 08 10:52:12 2009] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch configured -- resuming normal operations [Fri May 08 12:52:23 2009] [notice] caught SIGTERM, shutting down %<------%<------%<------%<------%<------%<------

danielniccoli commented 11 years ago

From ste...@konink.de on May 14, 2009 22:38:48 Is probably much more prefered than dumping it to stderr :)

danielniccoli commented 11 years ago

From nickmari...@gmail.com on June 29, 2009 12:51:56 I got now the same error in ubuntu desktop after installed apache2, mysql and php5. I just wrote a phpinfo in index.php and the server don't run it.

The log say the same from you and i don't understand it. What is the error ? I really can't understand it

danielniccoli commented 11 years ago

From ste...@konink.de on November 04, 2009 18:11:05 I think what he means is stuff like this:

file thread.c:1696 (watch_accept_MULTI_THREAD): this should not happen

Even that is an innocent error (hence restarting the server), it would be nice if it had a time prefixed like how it is done for tracing.