Skip to content

Commit

Permalink
Logs: Reduce logging IO
Browse files Browse the repository at this point in the history
  • Loading branch information
elad335 committed Sep 2, 2024
1 parent e56164f commit 844cc65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpcs3/Input/hid_pad_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ void hid_pad_handler<Device>::enumerate_devices()
}
hid_free_enumeration(head);
}
hid_log.notice("%s enumeration found %d devices (%f ms)", m_type, device_paths.size(), timer.GetElapsedTimeInMilliSec());

(device_paths.empty() ? hid_log.trace : hid_log.notice)("%s enumeration found %d devices (%f ms)", m_type, device_paths.size(), timer.GetElapsedTimeInMilliSec());

std::lock_guard lock(m_enumeration_mutex);
m_new_enumerated_devices = device_paths;
Expand Down

0 comments on commit 844cc65

Please sign in to comment.