removed debug logging

This commit is contained in:
Philipp Hentschel
2024-07-22 12:37:17 +02:00
parent dedee8cd14
commit 9c47b2e9dd
2 changed files with 0 additions and 10 deletions

View File

@ -1,6 +1,4 @@
#include "modules/pulseaudio.hpp" #include "modules/pulseaudio.hpp"
#include <spdlog/spdlog.h>
#include <numeric>
waybar::modules::Pulseaudio::Pulseaudio(const std::string &id, const Json::Value &config) waybar::modules::Pulseaudio::Pulseaudio(const std::string &id, const Json::Value &config)
: ALabel(config, "pulseaudio", id, "{volume}%") { : ALabel(config, "pulseaudio", id, "{volume}%") {
@ -54,7 +52,6 @@ const std::vector<std::string> waybar::modules::Pulseaudio::getPulseIcon() const
std::string nameLC = backend->getSinkPortName() + backend->getFormFactor(); std::string nameLC = backend->getSinkPortName() + backend->getFormFactor();
std::transform(nameLC.begin(), nameLC.end(), nameLC.begin(), ::tolower); std::transform(nameLC.begin(), nameLC.end(), nameLC.begin(), ::tolower);
for (auto const &port : ports) { for (auto const &port : ports) {
spdlog::trace("Port: {}", nameLC);
if (nameLC.find(port) != std::string::npos) { if (nameLC.find(port) != std::string::npos) {
if (sink_muted) { if (sink_muted) {
res.emplace_back(port + "-muted"); res.emplace_back(port + "-muted");
@ -66,10 +63,6 @@ const std::vector<std::string> waybar::modules::Pulseaudio::getPulseIcon() const
if (sink_muted) { if (sink_muted) {
res.emplace_back("default-muted"); res.emplace_back("default-muted");
} }
spdlog::trace("Ports:");
for (auto const &item : res) {
spdlog::trace(" {}", item);
}
return res; return res;
} }

View File

@ -9,7 +9,6 @@
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
#include <cstring>
#include <stdexcept> #include <stdexcept>
#include <utility> #include <utility>
#include <spdlog/spdlog.h> #include <spdlog/spdlog.h>
@ -136,7 +135,6 @@ void AudioBackend::volumeModifyCb(pa_context *c, int success, void *data) {
} }
} }
/* /*
* Called when the requested sink information is ready. * Called when the requested sink information is ready.
*/ */
@ -144,7 +142,6 @@ void AudioBackend::sinkInfoCb(pa_context * /*context*/, const pa_sink_info *i, i
void *data) { void *data) {
if (i == nullptr) return; if (i == nullptr) return;
spdlog::trace("Callback start");
auto running = i->state == PA_SINK_RUNNING; auto running = i->state == PA_SINK_RUNNING;
auto idle = i->state == PA_SINK_IDLE; auto idle = i->state == PA_SINK_IDLE;
spdlog::trace("Sink name {} Running:[{}] Idle:[{}]", i->name, running,idle ); spdlog::trace("Sink name {} Running:[{}] Idle:[{}]", i->name, running,idle );