Skip to content

Commit

Permalink
Move logging DB initialization to after QApplication exists
Browse files Browse the repository at this point in the history
  • Loading branch information
DaelonSuzuka committed May 11, 2024
1 parent d169089 commit 682261d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
from stagehand.application import Application
from stagehand.main_window import MainWindow
from stagehand.plugin_loader import Plugins
from qtstrap.extras import log_monitor


def main():
log_monitor.exception_logger_name = 'stagehand.exceptions'
log_monitor.install()

Plugins()

app = Application()

window = MainWindow()
Expand Down
7 changes: 7 additions & 0 deletions app/stagehand/application.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
from qtstrap import *
from qtstrap.extras import log_monitor
from codex import DeviceManager
from .app_updater import ApplicationUpdater
from .plugin_loader import Plugins


class Application(BaseApplication):
def __init__(self) -> None:
super().__init__()

log_monitor.exception_logger_name = 'stagehand.exceptions'
log_monitor.install()

Plugins()

self.updater = ApplicationUpdater()
# self.updater.check_latest()

Expand Down

0 comments on commit 682261d

Please sign in to comment.