From 8166389f2448d378dc6c4452aa4c25dd24ede1ab Mon Sep 17 00:00:00 2001 From: benx1n <1119809439@qq.com> Date: Sat, 25 Jun 2022 20:34:46 +0800 Subject: [PATCH] =?UTF-8?q?[#]=20=E4=BF=AE=E5=A4=8Dstring=20to=20char*?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E4=B9=B1=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/carrotjuicer/notifier.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/carrotjuicer/notifier.cpp b/src/carrotjuicer/notifier.cpp index baeac46b..97ff20ef 100644 --- a/src/carrotjuicer/notifier.cpp +++ b/src/carrotjuicer/notifier.cpp @@ -25,7 +25,7 @@ namespace notifier httplib::Error error = res.error(); if (error != httplib::Error::Success) { - printf("Unexpected error from notifier: %s \n", httplib::to_string(error)); + std::cout << "Unexpected error from notifier: " << httplib::to_string(error) << "\n"; } } void notify_request(const std::string& data) @@ -38,7 +38,7 @@ namespace notifier httplib::Error error = res.error(); if (error != httplib::Error::Success) { - printf("Unexpected error from notifier: %s \n", httplib::to_string(error)); + std::cout << "Unexpected error from notifier: " << httplib::to_string(error) << "\n"; } } }