Merge pull request #21184 from owncloud/cli-logger-embedded-webserver

Let's print error messages to the builtin webserver console ... makes…
This commit is contained in:
Thomas Müller 2015-12-16 20:26:29 +01:00
commit c92b49c82a
1 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,9 @@ class OC_Log_Owncloud {
// Fall back to error_log
error_log($entry);
}
if (php_sapi_name() === 'cli-server') {
error_log($message, 4);
}
}
/**