From e78e547552f66cad71d1450fc0bdbccce1d13575 Mon Sep 17 00:00:00 2001 From: Kuba <132459354+KubaPro010@users.noreply.github.com> Date: Mon, 13 Oct 2025 20:03:36 +0200 Subject: [PATCH] logger --- modules/active_modifier.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/active_modifier.py b/modules/active_modifier.py index eff6edb..0e11ff1 100644 --- a/modules/active_modifier.py +++ b/modules/active_modifier.py @@ -5,7 +5,11 @@ class ActiveModifier: """Tuple consists of the track path, to fade out, fade in, official, and args""" def play(self, index: int, track: tuple[str, bool, bool, bool, dict[str, str]]): return track def on_new_playlist(self, playlist: list[tuple[str, bool, bool, bool, dict[str, str]]]): pass -import os + +import os, log95 + +logger = log95.log95("AC-MOD") + class Module(ActiveModifier): def __init__(self) -> None: self.playlist = None @@ -33,6 +37,8 @@ class Module(ActiveModifier): with open("/tmp/radioPlayer_toplay", "w") as f: f.write('\n'.join(songs)) + logger.info(f"Playing {song} instead, as instructed by toplay") + return song, last_track_to_fade_out, next_track_to_fade_in, True, {} elif len(self.originals): return self.originals.pop(0)