Skip to content

Commit

Permalink
Revert "Log level prefix cleanup (#15852)" (#15907)
Browse files Browse the repository at this point in the history
This reverts commit 2a51e66.
  • Loading branch information
sonninnos authored Nov 14, 2023
1 parent 9e2da4a commit 38c77e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
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 " FILE_PATH_LOG_DBG, fmt, vp);
RARCH_LOG_V("[libretro DEBUG]", fmt, vp);
break;

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

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

case RETRO_LOG_ERROR:
RARCH_ERR_V("libretro " FILE_PATH_LOG_ERROR, fmt, vp);
RARCH_ERR_V("[libretro 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 "[DBG]"
#define FILE_PATH_LOG_INFO "[NFO]"
#define FILE_PATH_LOG_ERROR "[ERR]"
#define FILE_PATH_LOG_WARN "[WRN]"
#define FILE_PATH_LOG_DBG "[DEBUG]"
#define FILE_PATH_LOG_INFO "[INFO]"
#define FILE_PATH_LOG_ERROR "[ERROR]"
#define FILE_PATH_LOG_WARN "[WARN]"

bool verbosity_is_enabled(void);

Expand Down

0 comments on commit 38c77e9

Please sign in to comment.