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

Log level prefix cleanup #15852

Merged
merged 1 commit into from
Oct 31, 2023
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
8 changes: 4 additions & 4 deletions runloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,19 +896,19 @@ static void libretro_log_cb(
switch (level)
{
case RETRO_LOG_DEBUG:
RARCH_LOG_V("[libretro DEBUG]", fmt, vp);
RARCH_LOG_V("libretro " FILE_PATH_LOG_DBG, fmt, vp);
break;

case RETRO_LOG_INFO:
RARCH_LOG_OUTPUT_V("[libretro INFO]", fmt, vp);
RARCH_LOG_OUTPUT_V("libretro " FILE_PATH_LOG_INFO, fmt, vp);
break;

case RETRO_LOG_WARN:
RARCH_WARN_V("[libretro WARN]", fmt, vp);
RARCH_WARN_V("libretro " FILE_PATH_LOG_WARN, fmt, vp);
break;

case RETRO_LOG_ERROR:
RARCH_ERR_V("[libretro ERROR]", fmt, vp);
RARCH_ERR_V("libretro " FILE_PATH_LOG_ERROR, fmt, vp);
break;

default:
Expand Down
8 changes: 4 additions & 4 deletions verbosity.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@

RETRO_BEGIN_DECLS

#define FILE_PATH_LOG_DBG "[DEBUG]"
#define FILE_PATH_LOG_INFO "[INFO]"
#define FILE_PATH_LOG_ERROR "[ERROR]"
#define FILE_PATH_LOG_WARN "[WARN]"
#define FILE_PATH_LOG_DBG "[DBG]"
#define FILE_PATH_LOG_INFO "[NFO]"
#define FILE_PATH_LOG_ERROR "[ERR]"
#define FILE_PATH_LOG_WARN "[WRN]"

bool verbosity_is_enabled(void);

Expand Down
Loading