Browse Source

Set log as a warning

Laurent Destailleur 1 year ago
parent
commit
4fe2c674f1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      htdocs/core/lib/security.lib.php

+ 2 - 1
htdocs/core/lib/security.lib.php

@@ -190,12 +190,13 @@ function dolDecrypt($chain, $key = '')
 		$key = $conf->file->instance_unique_id;
 	}
 
+	//var_dump('key='.$key);
 	$reg = array();
 	if (preg_match('/^dolcrypt:([^:]+):(.+)$/', $chain, $reg)) {
 		$ciphering = $reg[1];
 		if (function_exists('openssl_decrypt')) {
 			if (empty($key)) {
-				dol_syslog("Error dolDecrypt decrypt key is empty", LOG_ERR);
+				dol_syslog("Error dolDecrypt decrypt key is empty", LOG_WARNING);
 				return $chain;
 			}
 			$tmpexplode = explode(':', $reg[2]);