Skip to content

Commit

Permalink
remove some debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Jan 20, 2024
1 parent 99e9b74 commit 0e4d0ef
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions src/managers/BaseJsonManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

bool BaseJsonManager::init(const char* filename){
m_filename = filename;
log::info("Loading {}", filename);
auto loadResult = load();
if(!loadResult) {
log::warn("Unable to load {}", filename);
Expand Down Expand Up @@ -45,8 +44,6 @@ Result<> BaseJsonManager::save() {
if (!res2) {
log::error("Unable to save values: {}", res2.unwrapErr());
}

log::info("Saved {}", m_filename);
return Ok();
}

Expand Down
6 changes: 0 additions & 6 deletions src/managers/BetterInfoCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,10 @@ int BetterInfoCache::getDemonDifficulty(int levelID) {

void BetterInfoCache::storeUserName(int userID, const std::string& username) {
if(username.empty()) {
log::info("Username empty, not storing");
return;
}

auto idString = std::to_string(userID);
log::info("Storing username {} for user ID {}", username, idString);
m_json["username-dict"][idString] = username;
doSave();

Expand All @@ -124,14 +122,12 @@ void BetterInfoCache::storeUserName(int userID, const std::string& username) {

void BetterInfoCache::storeLevelInfo(int levelID, const std::string& field, const std::string& value) {
if(field.empty() || value.empty()) {
log::info("Field or value empty, not storing");
return;
}

auto idString = std::to_string(levelID);
if(!m_json["level-info-dict"][idString].is_object()) m_json["level-info-dict"][idString] = matjson::Object();

log::info("Storing {} : {} for level ID {}", field, value, idString);
m_json["level-info-dict"][idString][field] = value;
doSave();
}
Expand Down Expand Up @@ -198,12 +194,10 @@ int BetterInfoCache::getCoinCount(int levelID) {

void BetterInfoCache::storeUploadDate(int levelID, const std::string& date) {
if(date.empty()) {
log::info("Date empty, not storing");
return;
}

auto idString = std::to_string(levelID);
log::info("Storing date {} for level ID {}", date, idString);
m_json["upload-date-dict"][idString] = date;
doSave();

Expand Down
2 changes: 0 additions & 2 deletions src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,6 @@ float BetterInfo::timeForLevelString(const std::string& levelString) {

timeFull += (maxPos - prevPortalX) / travelForPortalId(prevPortalId);
auto b = timeInMs() - a;
log::debug("time spent decompressing: {}", c - a);
log::debug("time spent: {}", b);
return timeFull;
} catch(std::exception e) {
log::error("An exception has occured while calculating time for levelString: {}", e.what());
Expand Down

0 comments on commit 0e4d0ef

Please sign in to comment.