summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-16 20:26:29 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-16 20:26:29 +0100
commitc92b49c82aad3104f9d60961a57f6d8480c136a5 (patch)
treee8da90a02b8b4d9c2a69443531a66de745b0effe /lib
parent9a4ab698b73ce42df5815306757313334cd825de (diff)
parenta7ecb6e984a3259ffe75abfdafaba46a4435af17 (diff)
downloadnextcloud-server-c92b49c82aad3104f9d60961a57f6d8480c136a5.tar.gz
nextcloud-server-c92b49c82aad3104f9d60961a57f6d8480c136a5.zip
Merge pull request #21184 from owncloud/cli-logger-embedded-webserver
Let's print error messages to the builtin webserver console ... makes…
Diffstat (limited to 'lib')
-rw-r--r--lib/private/log/owncloud.php3
1 files changed, 3 insertions, 0 deletions
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);
+ }
}
/**