announcements: enable dev_mode when the debug flag is set

Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2023-02-06 18:12:29 -05:00
parent 4af483c786
commit 83e0947d31
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class Announcements:
) )
self.request_lock = asyncio.Lock() self.request_lock = asyncio.Lock()
self.dev_mode = config.getboolean("dev_mode", False) self.dev_mode = config.getboolean("dev_mode", False)
self.dev_mode = self.dev_mode or self.server.is_debug_enabled()
self.subscriptions: Dict[str, RssFeed] = { self.subscriptions: Dict[str, RssFeed] = {
"moonraker": RssFeed("moonraker", self.entry_mgr, self.dev_mode), "moonraker": RssFeed("moonraker", self.entry_mgr, self.dev_mode),
"klipper": RssFeed("klipper", self.entry_mgr, self.dev_mode) "klipper": RssFeed("klipper", self.entry_mgr, self.dev_mode)