Don't print array with user info

This commit is contained in:
Petter 2021-02-02 21:47:46 +01:00
parent 69e87dbf22
commit b99446dff1

View File

@ -33,7 +33,7 @@ class UserHooks {
'email' => $uid . $email_suffix, 'email' => $uid . $email_suffix,
'quota' => $quota // in MB 'quota' => $quota // in MB
); );
$this->logger->warning("newuser:". print_r($newuser,1)); // $this->logger->warning("newuser:". print_r($newuser,1));
if($this->createEmailAccount($newuser)) { if($this->createEmailAccount($newuser)) {
$this->logger->warning( $this->logger->warning(
"Automatically created mail account for uid " . $uid "Automatically created mail account for uid " . $uid
@ -54,7 +54,7 @@ class UserHooks {
$email_suffix = $this->config->getEmailAddressSuffix(); $email_suffix = $this->config->getEmailAddressSuffix();
$email = $uid . $email_suffix; $email = $uid . $email_suffix;
$user_data = array('email' => $email); $user_data = array('email' => $email);
$this->logger->warning("user_data:". print_r($user_data,1)); // $this->logger->warning("user_data:". print_r($user_data,1));
if($this->deleteEmailAccount($user_data)) if($this->deleteEmailAccount($user_data))
$this->logger->warning( $this->logger->warning(
"Deleted mail account: " . $email, $this->logContext); "Deleted mail account: " . $email, $this->logContext);
@ -92,7 +92,7 @@ class UserHooks {
'password' => $newuser['password'], 'password' => $newuser['password'],
'quota' => $newuser['quota'] 'quota' => $newuser['quota']
); );
$this->logger->warning("fields:" . print_r($fields, 1)); // $this->logger->warning("fields:" . print_r($fields, 1));
$query = http_build_query($fields); $query = http_build_query($fields);
$ch = curl_init(); $ch = curl_init();
curl_setopt($ch, CURLOPT_URL, curl_setopt($ch, CURLOPT_URL,