[go: nahoru, domu]

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

Additional functionality #127

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
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
Prev Previous commit
fix miss changed
  • Loading branch information
Cyberhan123 committed Dec 28, 2023
commit bd779c53f58c00e728a95db9c2741d803f504818
8 changes: 4 additions & 4 deletions util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,16 @@ std::string string_format(const std::string& format, Args... args) {
std::string log_prefix(SDLogLevel level, const char* file, int line) {
std::string format;
switch (level) {
case SDLogLevel::DEBUG:
case SDLogLevel::SD_LOG_LEVEL_DEBUG:
format = "[DEBUG] %s:%-4d - ";
break;
case SDLogLevel::INFO:
case SDLogLevel::SD_LOG_LEVEL_INFO:
format = "[INFO] %s:%-4d - ";
break;
case SDLogLevel::WARN:
case SDLogLevel::SD_LOG_LEVEL_WARN:
format = "[WARN] %s:%-4d - ";
break;
case SDLogLevel::ERROR:
case SDLogLevel::SD_LOG_LEVEL_ERROR:
format = "[ERROR] %s:%-4d - ";
break;
}
Expand Down
Loading