Skip to content

Conversation

@StephenNneji
Copy link
Contributor

  • Fixes Make all settings global #177

  • Also fixes the Windows > Save Current Windows Positions option, now if you move the mdi windows and save, the windows will be put into the same position when reopening the software or when Reset to default is clicked

  • Refactors logging and adds a custom stream handler so the terminal formats errors properly

    logging.info("Blah Blah!!")
    logging.error("Blah Blah to you too!!")
    
    Screenshot 2026-01-21 103030

Copy link
Collaborator

@DrPaulSharp DrPaulSharp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good, but I have a question on the logging in the comments.

The "save current windows positions" option works well. I'm just wondering how intuitive it is to reset the saved positions to the tiled layout - you have to click tile windows and then the save option. Is this the best way? I'm not sure I can immediately think of something better, but it doesn't seem obvious.

except Exception as ex:
logger = logging.getLogger("rascal_log")
logger.error("Attempted to edit a file in MATLAB engine" + repr(ex))
logging.error("Attempted to edit a file in MATLAB engine", exc_info=ex)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you switching from module level logging to using the root logger everywhere? I thought that module level logging was more advantageous.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see setup_logging modifies global settings, I think you might need to walk me through this one please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make all settings global

2 participants