From 4647f5096019b2ccb6b32783fb628ba1237049e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Mon, 27 Mar 2023 16:28:24 -0400
Subject: [PATCH] jamiaccount: cleanup

Change-Id: I191537ba96a6914c2a44b74f53c1767d64c70c3e
---
 src/jamidht/jamiaccount.cpp | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/src/jamidht/jamiaccount.cpp b/src/jamidht/jamiaccount.cpp
index 8c7a217a67..f7f2caf156 100644
--- a/src/jamidht/jamiaccount.cpp
+++ b/src/jamidht/jamiaccount.cpp
@@ -1820,12 +1820,7 @@ JamiAccount::doRegister_()
         if (not config.proxy_server.empty()) {
             JAMI_LOG("[Account {}] using proxy server {}", getAccountID(), config.proxy_server);
             if (not config.push_token.empty()) {
-                JAMI_LOG(
-                    "[Account %s] using push notifications with platform: {}, topic: {}, token: {}",
-                    getAccountID(),
-                    config.push_platform,
-                    config.push_topic,
-                    config.push_token);
+                JAMI_LOG("[Account {}] using push notifications with platform: {}, topic: {}, token: {}", getAccountID(), config.push_platform, config.push_topic, config.push_token);
             }
         }
 
@@ -1833,7 +1828,7 @@ JamiAccount::doRegister_()
         if (conf.accountPeerDiscovery or conf.accountPublish) {
             peerDiscovery_ = std::make_shared<dht::PeerDiscovery>();
             if (conf.accountPeerDiscovery) {
-                JAMI_INFO("[Account %s] starting Jami account discovery...", getAccountID().c_str());
+                JAMI_LOG("[Account {}] starting Jami account discovery...", getAccountID());
                 startAccountDiscovery();
             }
             if (conf.accountPublish)
@@ -1885,8 +1880,8 @@ JamiAccount::doRegister_()
             std::vector<std::shared_ptr<dht::crypto::Certificate>> ret;
             if (auto cert = tls::CertificateStore::instance().getCertificate(pk_id.toString()))
                 ret.emplace_back(std::move(cert));
-            JAMI_DBG("Query for local certificate store: %s: %zu found.",
-                     pk_id.toString().c_str(),
+            JAMI_LOG("Query for local certificate store: {}: {} found.",
+                     pk_id.toString(),
                      ret.size());
             return ret;
         };
-- 
GitLab