diff --git a/ecrire/install/etape_3b.php b/ecrire/install/etape_3b.php
index f3f084cc4a828d4c31d6073723bccbbe088640c3..9940df4f8bf701db3736d1afff562795d914f321 100644
--- a/ecrire/install/etape_3b.php
+++ b/ecrire/install/etape_3b.php
@@ -148,7 +148,7 @@ function install_etape_3b_dist() {
 		include_spip('inc/auth');
 		$auteur = auth_identifier_login($login, $pass);
 		if (!$auteur || !auth_loger($auteur)) {
-			$logger->info("login automatique impossible $auth_spip $session" . (is_countable($row) ? count($row) : 0));
+			spip_logger()->info("login automatique impossible $auth_spip $session" . (is_countable($row) ? count($row) : 0));
 		}
 	}