]> source.dussan.org Git - nextcloud-server.git/commitdiff
Let's print error messages to the builtin webserver console ... makes development...
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 14 Dec 2015 11:16:41 +0000 (12:16 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 14 Dec 2015 11:16:41 +0000 (12:16 +0100)
lib/private/log/owncloud.php

index f8a5f7534c5d6c134125148b1d71a3c33b26a6e2..be69150d8777331e9a25eca0bd6b78d4a0d1a23a 100644 (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);
+               }
        }
 
        /**