Revert "Log level prefix cleanup (#15852)" (#15907)

This reverts commit 2a51e66120.
This commit is contained in:
sonninnos 2023-11-15 00:31:55 +02:00 committed by GitHub
parent 9e2da4ace7
commit 38c77e9cfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -896,19 +896,19 @@ static void libretro_log_cb(
switch (level) switch (level)
{ {
case RETRO_LOG_DEBUG: case RETRO_LOG_DEBUG:
RARCH_LOG_V("libretro " FILE_PATH_LOG_DBG, fmt, vp); RARCH_LOG_V("[libretro DEBUG]", fmt, vp);
break; break;
case RETRO_LOG_INFO: case RETRO_LOG_INFO:
RARCH_LOG_OUTPUT_V("libretro " FILE_PATH_LOG_INFO, fmt, vp); RARCH_LOG_OUTPUT_V("[libretro INFO]", fmt, vp);
break; break;
case RETRO_LOG_WARN: case RETRO_LOG_WARN:
RARCH_WARN_V("libretro " FILE_PATH_LOG_WARN, fmt, vp); RARCH_WARN_V("[libretro WARN]", fmt, vp);
break; break;
case RETRO_LOG_ERROR: case RETRO_LOG_ERROR:
RARCH_ERR_V("libretro " FILE_PATH_LOG_ERROR, fmt, vp); RARCH_ERR_V("[libretro ERROR]", fmt, vp);
break; break;
default: default:

View File

@ -32,10 +32,10 @@
RETRO_BEGIN_DECLS RETRO_BEGIN_DECLS
#define FILE_PATH_LOG_DBG "[DBG]" #define FILE_PATH_LOG_DBG "[DEBUG]"
#define FILE_PATH_LOG_INFO "[NFO]" #define FILE_PATH_LOG_INFO "[INFO]"
#define FILE_PATH_LOG_ERROR "[ERR]" #define FILE_PATH_LOG_ERROR "[ERROR]"
#define FILE_PATH_LOG_WARN "[WRN]" #define FILE_PATH_LOG_WARN "[WARN]"
bool verbosity_is_enabled(void); bool verbosity_is_enabled(void);