Skip to content

Commit

Permalink
Don't import classes.logger from classes.sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Dec 9, 2021
1 parent 7a46a90 commit 52c3cdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/classes/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __init__(self, *args, **kwargs):

try:
# Import modules
from classes import info, sentry
from classes import info
from classes.logger import log, reroute_output

# Log the session's start
Expand All @@ -90,9 +90,9 @@ def __init__(self, *args, **kwargs):
log.info(time.asctime().center(48))
log.info('Starting new session'.center(48))

log.debug("Command line: {}".format(self.args))
log.debug("Command line: %s", self.args)

from classes import settings, project_data, updates
from classes import settings, project_data, updates, sentry
import openshot

# Re-route stdout and stderr to logger
Expand Down
3 changes: 1 addition & 2 deletions src/classes/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

import platform

from classes.logger import log
from classes import info

try:
Expand Down Expand Up @@ -57,7 +56,7 @@ def init_tracing():
environment = "unstable"

if info.ERROR_REPORT_STABLE_VERSION:
log.info("Sentry initialized with %s error reporting rate (%s)" % (traces_sample_rate, environment))
print("Sentry initialized with %s error reporting rate (%s)" % (traces_sample_rate, environment))

# Initialize sentry exception tracing
sdk.init(
Expand Down

0 comments on commit 52c3cdc

Please sign in to comment.