Skip to content

Conversation

@ondras12345
Copy link
Contributor

I have just spent several hours debugging why ModelicaSystem() cannot load my custom package.
It turns out that it does not support relative paths, because it cd()s to a tmp directory.
However, that is really hard to see without appropriate logging.

This PR allows the user to see exactly what's happening by enabling debug logging:

import logging
logging.basicConfig(level=logging.DEBUG)
logging.getLogger("OMPython").setLevel(logging.DEBUG)

@CLAassistant
Copy link

CLAassistant commented Apr 5, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@lochel lochel left a comment

Choose a reason for hiding this comment

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

Very good 👍

@lochel lochel merged commit 0c80af6 into OpenModelica:master Apr 6, 2025
5 checks passed
@ondras12345 ondras12345 deleted the logging branch April 6, 2025 19:56
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.

3 participants