Skip to content

Commit

Permalink
Minimize unnecessary logging of types
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 7, 2025
1 parent 7e3df90 commit 0613741
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion shared/sdk/REGlobals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ REGlobals::REGlobals() {
auto& types = reframework::get_types();
auto& type_list = types->get_types();

size_t i = 0;

for (auto t : type_list) {
auto name = std::string{t->name};

Expand All @@ -98,7 +100,9 @@ REGlobals::REGlobals() {
// Get the contained type by grabbing the string between the "`1<"" and the ">""
auto type_name = name.substr(name.find("`1<") + 3, name.find(">") - name.find("`1<") - 3);

spdlog::info("{}", type_name);
if (i++ < 100) {
spdlog::info("{}", type_name);
}

m_getters[type_name] = getter;
}
Expand Down
4 changes: 3 additions & 1 deletion shared/sdk/RETypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ void RETypes::refresh_map() {
m_type_map[name] = t;

if (m_types.count(t) == 0) {
spdlog::info("{:s}", name);
if (i < 100) {
spdlog::info("{:s}", name);
}
m_types.insert(t);
m_type_list.push_back(t);
}
Expand Down

0 comments on commit 0613741

Please sign in to comment.