From 907a46213e5ca3e741744f67ad71966b70b89e38 Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周六, 05 12月 2020 23:38:40 +0800 Subject: [PATCH] fix Codacy warnings --- src/library/licensecc.cpp | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/library/licensecc.cpp b/src/library/licensecc.cpp index 2642811..af9b171 100644 --- a/src/library/licensecc.cpp +++ b/src/library/licensecc.cpp @@ -40,7 +40,7 @@ } catch (const std::exception& ex) { LOG_ERROR("Error calculating hw_identifier: %s", ex.what()); #ifndef NDEBUG - cout << "Error occurred: " << ex.what() << std::endl; + cerr << "Error occurred in identify_pc: " << ex.what() << std::endl; #endif } } else { @@ -124,7 +124,8 @@ } } #ifndef NDEBUG - cout << er << endl; + const string evlog = er.to_string(); + LOG_DEBUG("License status %s", evlog.c_str()); #endif if (license_out != nullptr) { -- Gitblit v1.9.1