feat: add verbose logging and log-level selection (#1941)

This commit is contained in:
leejet authored and GitHub committed 2026-09-06 23:14:03 +08:00
1 parent 462d675018
commit dbb611264e
69 files changed
+551 -484

No files matched your search

+2 -2
View File
@@ -237,7 +237,7 @@ bool read_safetensors_file(const std::string& file_path,
for (auto& item : header_.items()) {
std::string name = item.key();
nlohmann::json tensor_info = item.value();
// LOG_DEBUG("%s %s\n", name.c_str(), tensor_info.dump().c_str());
// LOG_VERBOSE("%s %s\n", name.c_str(), tensor_info.dump().c_str());
if (name == "__metadata__") {
continue;
@@ -350,7 +350,7 @@ bool read_safetensors_file(const std::string& file_path,
tensor_storages.push_back(tensor_storage);
// LOG_DEBUG("%s %s", tensor_storage.to_string().c_str(), dtype.c_str());
// LOG_VERBOSE("%s %s", tensor_storage.to_string().c_str(), dtype.c_str());
}
return true;