Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add log for cpu instructions #1807

Merged
merged 6 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion engine/cli/commands/model_status_cmd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ bool ModelStatusCmd::IsLoaded(const std::string& host, int port,
auto res = curl_utils::SimpleGetJson(url.ToFullPath());
if (res.has_error()) {
auto root = json_helper::ParseJsonString(res.error());
CLI_LOG(root["message"].asString());
CTL_WRN(root["message"].asString());
return false;
}

Expand Down
4 changes: 4 additions & 0 deletions engine/services/engine_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "database/engines.h"
#include "extensions/remote-engine/remote_engine.h"
#include "utils/archive_utils.h"
#include "utils/cpuid/cpu_info.h"
#include "utils/engine_constants.h"
#include "utils/engine_matcher_utils.h"
#include "utils/file_manager_utils.h"
Expand Down Expand Up @@ -691,6 +692,9 @@ cpp::result<void, std::string> EngineService::LoadEngine(
// End hard code

CTL_INF("Loading engine: " << ne);
#if defined(_WIN32) || defined(_WIN64) || defined(__linux__)
CTL_INF("CPU Info: " << cortex::cpuid::CpuInfo().to_string());
#endif

auto engine_dir_path_res = GetEngineDirPath(ne);
if (engine_dir_path_res.has_error()) {
Expand Down
2 changes: 1 addition & 1 deletion engine/utils/github_release_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ inline cpp::result<GitHubRelease, std::string> GetReleaseByVersion(
.pathParams = path_params,
};

CTL_DBG("GetReleaseByVersion: " << url.ToFullPath());
// CTL_DBG("GetReleaseByVersion: " << url.ToFullPath());
auto result =
curl_utils::SimpleGetJson(url_parser::FromUrl(url), kCurlGetTimeout);

Expand Down