Show server log file location in the view logs dialog

This commit is contained in:
Kovid Goyal 2017-06-21 11:32:50 +05:30
parent d1f0903321
commit 1d2d913def
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -855,6 +855,9 @@ class ConfigWidget(ConfigWidgetBase):
)
except EnvironmentError:
al.setPlainText('No access log found')
loc = QLabel(_('The server log files are in: {}').format(os.path.dirname(log_error_file)))
loc.setWordWrap(True)
layout.addWidget(loc)
bx = QDialogButtonBox(QDialogButtonBox.Ok)
layout.addWidget(bx)
bx.accepted.connect(d.accept)