mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-18 22:32:44 +00:00
Switched to a custom logging lib instead of that spdlog junk
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "sdrpp_server_client.h"
|
||||
#include <imgui.h>
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <utils/flog.h>
|
||||
#include <module.h>
|
||||
#include <gui/gui.h>
|
||||
#include <signal_path/signal_path.h>
|
||||
@@ -96,13 +96,13 @@ private:
|
||||
core::setInputSampleRate(_this->client->getSampleRate());
|
||||
}
|
||||
gui::mainWindow.playButtonLocked = !(_this->client && _this->client->isOpen());
|
||||
spdlog::info("SDRPPServerSourceModule '{0}': Menu Select!", _this->name);
|
||||
flog::info("SDRPPServerSourceModule '{0}': Menu Select!", _this->name);
|
||||
}
|
||||
|
||||
static void menuDeselected(void* ctx) {
|
||||
SDRPPServerSourceModule* _this = (SDRPPServerSourceModule*)ctx;
|
||||
gui::mainWindow.playButtonLocked = false;
|
||||
spdlog::info("SDRPPServerSourceModule '{0}': Menu Deselect!", _this->name);
|
||||
flog::info("SDRPPServerSourceModule '{0}': Menu Deselect!", _this->name);
|
||||
}
|
||||
|
||||
static void start(void* ctx) {
|
||||
@@ -120,7 +120,7 @@ private:
|
||||
_this->client->start();
|
||||
|
||||
_this->running = true;
|
||||
spdlog::info("SDRPPServerSourceModule '{0}': Start!", _this->name);
|
||||
flog::info("SDRPPServerSourceModule '{0}': Start!", _this->name);
|
||||
}
|
||||
|
||||
static void stop(void* ctx) {
|
||||
@@ -130,7 +130,7 @@ private:
|
||||
if (_this->client) { _this->client->stop(); }
|
||||
|
||||
_this->running = false;
|
||||
spdlog::info("SDRPPServerSourceModule '{0}': Stop!", _this->name);
|
||||
flog::info("SDRPPServerSourceModule '{0}': Stop!", _this->name);
|
||||
}
|
||||
|
||||
static void tune(double freq, void* ctx) {
|
||||
@@ -139,7 +139,7 @@ private:
|
||||
_this->client->setFrequency(freq);
|
||||
}
|
||||
_this->freq = freq;
|
||||
spdlog::info("SDRPPServerSourceModule '{0}': Tune: {1}!", _this->name, freq);
|
||||
flog::info("SDRPPServerSourceModule '{0}': Tune: {1}!", _this->name, freq);
|
||||
}
|
||||
|
||||
static void menuHandler(void* ctx) {
|
||||
@@ -234,7 +234,7 @@ private:
|
||||
deviceInit();
|
||||
}
|
||||
catch (std::exception e) {
|
||||
spdlog::error("Could not connect to SDR: {0}", e.what());
|
||||
flog::error("Could not connect to SDR: {0}", e.what());
|
||||
if (!strcmp(e.what(), "Server busy")) { serverBusy = true; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user