From ef7c7136d07a9dc545df9af47f8e9f28ed248196 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauld.mccarthy@gmail.com> Date: Wed, 1 Mar 2017 15:12:20 +0000 Subject: [PATCH] Changed status logging. Limit max size of texteditdialog --- fsl/utils/dialog.py | 1 + fsl/utils/status.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fsl/utils/dialog.py b/fsl/utils/dialog.py index fd1886daa..429531dc2 100644 --- a/fsl/utils/dialog.py +++ b/fsl/utils/dialog.py @@ -449,6 +449,7 @@ class TextEditDialog(wx.Dialog): # set the min size of the text # ctrl so it can fit a few lines self.__textEdit.SetMinSize((-1, 120)) + self.__textEdit.SetMaxSize((600, -1)) self.__ok = (-1, -1) self.__copy = (-1, -1) diff --git a/fsl/utils/status.py b/fsl/utils/status.py index 03474883f..e52e9b37c 100644 --- a/fsl/utils/status.py +++ b/fsl/utils/status.py @@ -131,8 +131,6 @@ def reportError(title, msg, err): from .platform import platform as fslplatform from . import async - log.error('{}: {}'.format(title, msg, exc_info=True)) - if fslplatform.haveGui: msg = '{}\n\nDetails: {}'.format(msg, str(err)) @@ -149,7 +147,9 @@ def reportIfError(title, msg, raiseError=True): yield except Exception as e: - + + log.error('{}: {}'.format(title, msg), exc_info=True) + reportError(title, msg, e) if raiseError: -- GitLab