Switched to a custom logging lib instead of that spdlog junk

This commit is contained in:
AlexandreRouma
2023-02-25 18:12:34 +01:00
parent 7e80bbd02c
commit 7723d15e8f
154 changed files with 723 additions and 19918 deletions

View File

@@ -3,7 +3,7 @@
bool ModuleComManager::registerInterface(std::string moduleName, std::string name, void (*handler)(int code, void* in, void* out, void* ctx), void* ctx) {
std::lock_guard<std::mutex> lck(mtx);
if (interfaces.find(name) != interfaces.end()) {
spdlog::error("Tried creating module interface with an existing name: {0}", name);
flog::error("Tried creating module interface with an existing name: {0}", name);
return false;
}
ModuleComInterface iface;
@@ -17,7 +17,7 @@ bool ModuleComManager::registerInterface(std::string moduleName, std::string nam
bool ModuleComManager::unregisterInterface(std::string name) {
std::lock_guard<std::mutex> lck(mtx);
if (interfaces.find(name) == interfaces.end()) {
spdlog::error("Tried to erase module interface with unknown name: {0}", name);
flog::error("Tried to erase module interface with unknown name: {0}", name);
return false;
}
interfaces.erase(name);
@@ -33,7 +33,7 @@ bool ModuleComManager::interfaceExists(std::string name) {
std::string ModuleComManager::getModuleName(std::string name) {
std::lock_guard<std::mutex> lck(mtx);
if (interfaces.find(name) == interfaces.end()) {
spdlog::error("Tried to call unknown module interface: {0}", name);
flog::error("Tried to call unknown module interface: {0}", name);
return "";
}
return interfaces[name].moduleName;
@@ -42,7 +42,7 @@ std::string ModuleComManager::getModuleName(std::string name) {
bool ModuleComManager::callInterface(std::string name, int code, void* in, void* out) {
std::lock_guard<std::mutex> lck(mtx);
if (interfaces.find(name) == interfaces.end()) {
spdlog::error("Tried to call unknown module interface: {0}", name);
flog::error("Tried to call unknown module interface: {0}", name);
return false;
}
ModuleComInterface iface = interfaces[name];