Convert printf to spdlog

pull/710/merge
Alessandro Toia 2 years ago
parent a6b5f741bc
commit 5b44ef7d07

@ -1,6 +1,7 @@
#include <vector>
#include <string>
#include <algorithm>
#include <spdlog/spdlog.h>
#include "blacklist.h"
#include "string_utils.h"
@ -45,7 +46,7 @@ static bool check_blacklisted() {
bool blacklisted = std::find(blacklist.begin(), blacklist.end(), proc_name) != blacklist.end();
if(blacklisted) {
fprintf(stderr, "INFO: process %s is blacklisted in MangoHud\n", proc_name.c_str());
SPDLOG_INFO("process '{}' is blacklisted in MangoHud", proc_name);
}
return blacklisted;

Loading…
Cancel
Save