From dc279a48c24991ca36b137fb1267d158a4666a26 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 22 Jul 2021 11:43:18 -0400 Subject: [PATCH] Move DPI / screen get logging to debug; reduce cli noise --- piker/ui/_style.py | 2 +- piker/ui/_window.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/ui/_style.py b/piker/ui/_style.py index 6e89d8b6..90f8a898 100644 --- a/piker/ui/_style.py +++ b/piker/ui/_style.py @@ -121,7 +121,7 @@ class DpiAwareFont: self._font_inches = inches font_size = math.floor(inches * dpi) - log.info( + log.debug( f"\nscreen:{screen.name()} with pDPI: {pdpi}, lDPI: {ldpi}" f"\nOur best guess font size is {font_size}\n" ) diff --git a/piker/ui/_window.py b/piker/ui/_window.py index c4c3f510..d05a6ed6 100644 --- a/piker/ui/_window.py +++ b/piker/ui/_window.py @@ -230,7 +230,7 @@ class MainWindow(QtGui.QMainWindow): for _ in range(3): screen = app.screenAt(self.pos()) - print('trying to access QScreen...') + log.debug('trying to access QScreen...') if screen is None: time.sleep(0.5) continue