Add logfile name to logfile viewer

This commit is contained in:
Rebecca Breu 2021-07-06 18:01:17 +02:00
parent b8dfbf0747
commit 4385defaaf
2 changed files with 2 additions and 1 deletions

View file

@ -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,

View file

@ -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()