Skip to content

Commit

Permalink
Remove app.py logspam
Browse files Browse the repository at this point in the history
Don't log attempt to set font, just failure
Don't log when setting dark theme
Convert "Processing command-line arguments:" into debug message
  • Loading branch information
ferdnyc committed Jul 3, 2018
1 parent cbd6452 commit 34fb6e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/classes/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ def __init__(self, *args, mode=None):
if self.settings.get("theme") != "No Theme":
# Load embedded font
try:
log.info("Setting font to %s" % os.path.join(info.IMAGES_PATH, "fonts", "Ubuntu-R.ttf"))
font_id = QFontDatabase.addApplicationFont(os.path.join(info.IMAGES_PATH, "fonts", "Ubuntu-R.ttf"))
font_family = QFontDatabase.applicationFontFamilies(font_id)[0]
font = QFont(font_family)
Expand All @@ -135,7 +134,6 @@ def __init__(self, *args, mode=None):
# Set Experimental Dark Theme
if self.settings.get("theme") == "Humanity: Dark":
# Only set if dark theme selected
log.info("Setting custom dark theme")
self.setStyle(QStyleFactory.create("Fusion"))

darkPalette = self.palette()
Expand Down Expand Up @@ -163,7 +161,7 @@ def __init__(self, *args, mode=None):
self.updates.reset()
self.window.updateStatusChanged(False, False)

log.info('Process command-line arguments: %s' % args)
log.debug('Process command-line arguments: %s' % args)
if len(args[0]) == 2:
path = args[0][1]
if ".osp" in path:
Expand Down

0 comments on commit 34fb6e5

Please sign in to comment.