diff options
author | Florian Bruhin <git@the-compiler.org> | 2016-04-10 17:47:04 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2016-04-10 18:03:29 +0200 |
commit | c5459abb65bbf5762f3876dee049a9759d666000 (patch) | |
tree | fd9b155d28ea18a4014816f6f55b02c00f7eecec | |
parent | 83b7c0dd6f4d5d52a5a305aafb6c82821a6afca3 (diff) | |
download | qutebrowser-c5459abb65bbf5762f3876dee049a9759d666000.tar.gz qutebrowser-c5459abb65bbf5762f3876dee049a9759d666000.zip |
Add some more logging for standarddir
-rw-r--r-- | qutebrowser/utils/standarddir.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qutebrowser/utils/standarddir.py b/qutebrowser/utils/standarddir.py index b1676b795..87effe6e0 100644 --- a/qutebrowser/utils/standarddir.py +++ b/qutebrowser/utils/standarddir.py @@ -25,7 +25,7 @@ import os.path from PyQt5.QtCore import QCoreApplication, QStandardPaths -from qutebrowser.utils import log, qtutils +from qutebrowser.utils import log, qtutils, debug # The argparse namespace passed to init() @@ -124,6 +124,8 @@ def _writable_location(typ): """Wrapper around QStandardPaths.writableLocation.""" with qtutils.unset_organization(): path = QStandardPaths.writableLocation(typ) + typ_str = debug.qenum_key(QStandardPaths, typ) + log.misc.debug("writable location for {}: {}".format(typ_str, path)) if not path: raise ValueError("QStandardPaths returned an empty value!") # Qt seems to use '/' as path separator even on Windows... |