mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-12 12:05:23 +02:00
Switched to a custom logging lib instead of that spdlog junk
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
#include <gui/widgets/bandplan.h>
|
||||
#include <fstream>
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <utils/flog.h>
|
||||
#include <filesystem>
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
@ -56,7 +56,7 @@ namespace bandplan {
|
||||
}
|
||||
|
||||
void to_json(json& j, const BandPlanColor_t& ct) {
|
||||
spdlog::error("ImGui color to JSON not implemented!!!");
|
||||
flog::error("ImGui color to JSON not implemented!!!");
|
||||
}
|
||||
|
||||
void from_json(const json& j, BandPlanColor_t& ct) {
|
||||
@ -81,7 +81,7 @@ namespace bandplan {
|
||||
|
||||
BandPlan_t plan = data.get<BandPlan_t>();
|
||||
if (bandplans.find(plan.name) != bandplans.end()) {
|
||||
spdlog::error("Duplicate band plan name ({0}), not loading.", plan.name);
|
||||
flog::error("Duplicate band plan name ({0}), not loading.", plan.name);
|
||||
return;
|
||||
}
|
||||
bandplans[plan.name] = plan;
|
||||
@ -91,11 +91,11 @@ namespace bandplan {
|
||||
|
||||
void loadFromDir(std::string path) {
|
||||
if (!std::filesystem::exists(path)) {
|
||||
spdlog::error("Band Plan directory does not exist");
|
||||
flog::error("Band Plan directory does not exist");
|
||||
return;
|
||||
}
|
||||
if (!std::filesystem::is_directory(path)) {
|
||||
spdlog::error("Band Plan directory isn't a directory...");
|
||||
flog::error("Band Plan directory isn't a directory...");
|
||||
return;
|
||||
}
|
||||
bandplans.clear();
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <imutils.h>
|
||||
#include <algorithm>
|
||||
#include <volk/volk.h>
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <utils/flog.h>
|
||||
#include <gui/gui.h>
|
||||
#include <gui/style.h>
|
||||
|
||||
@ -1292,7 +1292,7 @@ namespace ImGui {
|
||||
void WaterFall::showWaterfall() {
|
||||
buf_mtx.lock();
|
||||
if (rawFFTs == NULL) {
|
||||
spdlog::error("Null rawFFT");
|
||||
flog::error("Null rawFFT");
|
||||
}
|
||||
waterfallVisible = true;
|
||||
onResize();
|
||||
|
Reference in New Issue
Block a user