Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 4cf1951

Browse files
committed
chore: add log for cpu instructions
1 parent 44b739b commit 4cf1951

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

engine/cli/commands/model_status_cmd.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ bool ModelStatusCmd::IsLoaded(const std::string& host, int port,
2525
auto res = curl_utils::SimpleGetJson(url.ToFullPath());
2626
if (res.has_error()) {
2727
auto root = json_helper::ParseJsonString(res.error());
28-
CLI_LOG(root["message"].asString());
28+
CTL_WRN(root["message"].asString());
2929
return false;
3030
}
3131

engine/services/engine_service.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "utils/semantic_version_utils.h"
1818
#include "utils/system_info_utils.h"
1919
#include "utils/url_parser.h"
20+
#include "utils/cpuid/cpu_info.h"
2021

2122
namespace {
2223
std::string GetSuitableCudaVersion(const std::string& engine,
@@ -691,6 +692,7 @@ cpp::result<void, std::string> EngineService::LoadEngine(
691692
// End hard code
692693

693694
CTL_INF("Loading engine: " << ne);
695+
CTL_INF("CPU Info: " << cortex::cpuid::CpuInfo().to_string());
694696

695697
auto engine_dir_path_res = GetEngineDirPath(ne);
696698
if (engine_dir_path_res.has_error()) {

engine/utils/github_release_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ inline cpp::result<GitHubRelease, std::string> GetReleaseByVersion(
194194
.pathParams = path_params,
195195
};
196196

197-
CTL_DBG("GetReleaseByVersion: " << url.ToFullPath());
197+
// CTL_DBG("GetReleaseByVersion: " << url.ToFullPath());
198198
auto result =
199199
curl_utils::SimpleGetJson(url_parser::FromUrl(url), kCurlGetTimeout);
200200

0 commit comments

Comments
 (0)