write error to OC_Log

This commit is contained in:
Bjoern Schiessle 2012-08-13 13:29:22 +02:00
parent 34f93ac765
commit b1f6bb36b0

View file

@ -67,6 +67,7 @@ class Hooks {
if (isset($params['properties']['key'])) {
Keymanager::setFileKey($params['path'], $params['properties']['key']);
} else {
\OC_Log::write( 'Encryption library', "Client side encryption is enabled but the client doesn't provide a encryption key for the file!", \OC_Log::ERROR );
error_log("Client side encryption is enabled but the client doesn't provide a encryption key for the file!");
}
}