diff options
| author | Sterling Hughes <sterling@php.net> | 2001-08-16 06:05:57 +0000 |
|---|---|---|
| committer | Sterling Hughes <sterling@php.net> | 2001-08-16 06:05:57 +0000 |
| commit | b87834a12d7ec040b7706a45628ea83d05264736 (patch) | |
| tree | 5ffa04df6f2449612abdd66202e138cf9794a79d /sapi/apache2filter | |
| parent | 9395f0e6e21fc4b1eecc50e387f8b75dc7a18e2d (diff) | |
| download | php-git-b87834a12d7ec040b7706a45628ea83d05264736.tar.gz | |
Ryan Bloom's fix of my fix. ;)
Diffstat (limited to 'sapi/apache2filter')
| -rw-r--r-- | sapi/apache2filter/sapi_apache2.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index 31114bd8e3..737eedff39 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2filter/sapi_apache2.c @@ -182,8 +182,13 @@ static void php_apache_sapi_log_message(char *msg) TSRMLS_FETCH(); ctx = SG(server_context); - - aplog_error(NULL, 0, APLOG_ERR | APLOG_NOERRNO, ctx->f->r->server, "%s", msg); + + /* We use APLOG_STARTUP because it keeps us from printing the + * data and time information at the beginning of the error log + * line. Not sure if this is correct, but it mirrors what happens + * with Apache 1.3 -- rbb + */ + ap_log_error(NULL, APLOG_ERR | APLOG_NOERRNO | APLOG_STARTUP, 0, ctx->f->r->server, "%s", msg); } static sapi_module_struct apache2_sapi_module = { |
