Switch Trace to Debug in Libretro logging

This commit is contained in:
Sergey Stepanov 2024-05-07 23:05:03 +03:00
parent b843538fea
commit c5c2578d0f
No known key found for this signature in database
GPG key ID: A56B4929BAA8556B
3 changed files with 3 additions and 7 deletions

View file

@ -112,12 +112,7 @@ func NewFrontend(conf config.Emulator, log *logger.Logger) (*Frontend, error) {
log = log.Extend(log.With().Str("m", "Libretro"))
level := logger.Level(conf.Libretro.LogLevel)
if level == logger.DebugLevel {
level = logger.TraceLevel
nano.SetLogger(log.Extend(log.Level(level).With()))
} else {
nano.SetLogger(log)
}
nano.SetLogger(log.Extend(log.Level(level).With()))
// Check if room is on local storage, if not, pull from GCS to local storage
log.Info().Msgf("Local storage path: %v", conf.Storage)

View file

@ -231,6 +231,7 @@ void *run_loop(void *unused) {
mutex_destroy(&done_mutex);
pthread_detach(thread);
core_log_cgo(RETRO_LOG_DEBUG, "UnLibCo run loop stop\n");
pthread_exit(NULL);
}
void same_thread_stop() {

View file

@ -666,7 +666,7 @@ func coreLog(level C.enum_retro_log_level, msg *C.char) {
switch level {
// with debug level cores have too much logs
case C.RETRO_LOG_DEBUG:
Nan0.log.Trace().MsgFunc(func() string { return m(msg) })
Nan0.log.Debug().MsgFunc(func() string { return m(msg) })
case C.RETRO_LOG_INFO:
Nan0.log.Info().MsgFunc(func() string { return m(msg) })
case C.RETRO_LOG_WARN: