announcements: enable dev_mode when the debug flag is set
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
4af483c786
commit
83e0947d31
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue