mirror of
https://github.com/rbreu/beeref.git
synced 2026-03-11 08:54:28 +00:00
Add Qt Plugins Debug output to logs
This commit is contained in:
parent
d39a3e4033
commit
e4cac1c346
3 changed files with 22 additions and 7 deletions
20
README.rst
20
README.rst
|
|
@ -48,12 +48,6 @@ To get the current development version, you need to have a working Python 3 envi
|
|||
|
||||
Then run ``beeref`` or ``beeref filename.bee``.
|
||||
|
||||
If there are issues starting the application, run it with the environment variable ``QT_DEBUG_PLUGINS`` set to 1, for example from a Linux shell::
|
||||
|
||||
QT_DEBUG_PLUGINS=1 beeref
|
||||
|
||||
This should tell you whether you need to install any additional libraries.
|
||||
|
||||
|
||||
Features
|
||||
--------
|
||||
|
|
@ -79,6 +73,20 @@ The bee file format is a sqlite database inside which the images are stored in a
|
|||
Options for exporting from inside BeeRef are planned, but the above always works independently of BeeRef.
|
||||
|
||||
|
||||
Troubleshooting
|
||||
---------------
|
||||
|
||||
You can access the log output via *Help -> Show Debug Log*. In case BeeRef doesn't start at all, you can find the log file here:
|
||||
|
||||
Windows:
|
||||
|
||||
C:\Documents and Settings\USERNAME\Application Data\BeeRef\BeeRef.log
|
||||
|
||||
Linux and MacOS:
|
||||
|
||||
/home/USERNAME/.config/BeeRef/BeeRef.log
|
||||
|
||||
|
||||
Notes for developers
|
||||
--------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
# along with BeeRef. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
import logging
|
||||
import os
|
||||
import platform
|
||||
import signal
|
||||
import sys
|
||||
|
|
@ -106,10 +107,11 @@ def main():
|
|||
logger.info(f'Using settings: {settings.fileName()}')
|
||||
logger.info(f'Logging to: {logfile_name()}')
|
||||
CommandlineArgs(with_check=True) # Force checking
|
||||
|
||||
os.environ["QT_DEBUG_PLUGINS"] = "1"
|
||||
app = BeeRefApplication(sys.argv)
|
||||
palette = create_palette_from_dict(constants.COLORS)
|
||||
app.setPalette(palette)
|
||||
|
||||
bee = BeeRefMainWindow(app) # NOQA:F841
|
||||
|
||||
signal.signal(signal.SIGINT, handle_sigint)
|
||||
|
|
|
|||
|
|
@ -208,6 +208,11 @@ logging_conf = {
|
|||
'level': 'TRACE',
|
||||
'propagate': False,
|
||||
},
|
||||
'Qt': {
|
||||
'handlers': ['console', 'file'],
|
||||
'level': 'DEBUG',
|
||||
'propagate': False,
|
||||
},
|
||||
},
|
||||
'root': {
|
||||
'handlers': ['console', 'file'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue