From a7ecb6e984a3259ffe75abfdafaba46a4435af17 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20M=C3=BCller?= Date: Mon, 14 Dec 2015 12:16:41 +0100 Subject: [PATCH] Let's print error messages to the builtin webserver console ... makes development a bit easier --- lib/private/log/owncloud.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/private/log/owncloud.php b/lib/private/log/owncloud.php index f8a5f7534c5..be69150d877 100644 --- a/lib/private/log/owncloud.php +++ b/lib/private/log/owncloud.php @@ -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); + } } /** -- 2.39.5