Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override qSetMessagePattern in tomviz #2210

Merged
merged 1 commit into from
Oct 26, 2021

Conversation

psavery
Copy link
Contributor

@psavery psavery commented Oct 14, 2021

ParaView sets this in the pqOutputWidget here.

However, in our tomviz dev build, it never prints out any meaningful
information for the file and line number, perhaps because our dev
environment uses "RelWithDebInfo". Typically, we just get a whole bunch
of extra messages that look like this:

debug: In unknown, line 0

Override qSetMessagePattern after our pqOutputWidget has been
constructed so our debug output doesn't get flooded with meaningless
messages.

ParaView sets this in the pqOutputWidget [here](https://gitlab.kitware.com/paraview/paraview/-/blob/eda557d7ad642027943b8c721c85173b35b2f6a4/Qt/Core/pqOutputWidget.cxx#L410).

However, in our tomviz dev build, it never prints out any meaningful
information for the file and line number, perhaps because our dev
environment uses "RelWithDebInfo". Typically, we just get a whole bunch
of extra messages that look like this:

```
debug: In unknown, line 0
```

Override `qSetMessagePattern` after our `pqOutputWidget` has been
constructed so our debug output doesn't get flooded with meaningless
messages.

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
@psavery psavery marked this pull request as ready for review October 14, 2021 20:44
@psavery psavery merged commit d2497d6 into OpenChemistry:master Oct 26, 2021
@psavery psavery deleted the override-qsetmessagepattern branch October 26, 2021 20:40
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.

2 participants