]> source.dussan.org Git - nextcloud-server.git/commitdiff
also write error message to the log
authorBjoern Schiessle <schiessle@owncloud.com>
Thu, 1 Aug 2013 11:51:33 +0000 (13:51 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Thu, 8 Aug 2013 06:38:52 +0000 (08:38 +0200)
apps/files_encryption/lib/helper.php

index d3d4afff912c1f31ca0714d4753267f81c1363dc..cbc5de41c6bfd7e0565f9253a9bbdc1e7fa8fa7d 100755 (executable)
@@ -241,6 +241,7 @@ class Helper {
                if(openssl_pkey_new(array('private_key_bits' => 4096))) {
                        return true;
                } else {
+                       \OCP\Util::writeLog('Encryption library', 'openssl_pkey_new()fails:  ' . openssl_error_string(), \OCP\Util::ERROR);
                        return false;
                }
        }