From 4385defaaf05e5c4aa07de01f2c6391029480c20 Mon Sep 17 00:00:00 2001 From: Rebecca Breu Date: Tue, 6 Jul 2021 18:01:17 +0200 Subject: [PATCH] Add logfile name to logfile viewer --- beeref/config.py | 2 +- beeref/gui.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/beeref/config.py b/beeref/config.py index 36ba074..76db157 100644 --- a/beeref/config.py +++ b/beeref/config.py @@ -161,7 +161,7 @@ logging_conf = { 'class': 'beeref.utils.BeeRotatingFileHandler', 'formatter': 'verbose', 'filename': logfile_name(), - 'maxBytes': 1024 * 1000 * 50, + 'maxBytes': 1024 * 1000, # 1MB 'backupCount': 1, 'level': 'DEBUG', 'delay': True, diff --git a/beeref/gui.py b/beeref/gui.py index 41accd9..deafdbf 100644 --- a/beeref/gui.py +++ b/beeref/gui.py @@ -125,6 +125,7 @@ class DebugLogDialog(QtWidgets.QDialog): layout = QtWidgets.QVBoxLayout() self.setLayout(layout) + layout.addWidget(QtWidgets.QLabel(logfile_name())) layout.addWidget(scroll) layout.addWidget(buttons) self.show()