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

Output python exceptions to logger #2463

Merged
merged 2 commits into from Jun 9, 2019

Conversation

o01eg
Copy link
Contributor

@o01eg o01eg commented Jun 6, 2019

Adds missing exception print.
Fixes usage of boost::python::error_already_set.
Redirect exception print to logger (see https://stackoverflow.com/questions/24386818/how-can-i-get-output-of-pyerr-print-in-windows-or-save-it-as-a-string).
Should help when moving to python3.

@geoffthemedio geoffthemedio added category:feature The Issue/PR describes or implements a new game feature. component:internal The Issue/PR deals with any project component that has no explicit `component` label. labels Jun 9, 2019
@geoffthemedio geoffthemedio added this to the Next Release milestone Jun 9, 2019
@geoffthemedio geoffthemedio merged commit bb64eec into freeorion:master Jun 9, 2019
@geoffthemedio geoffthemedio added the status:merged All relevant commits of this PR were merged into the master development branch. label Jun 9, 2019
@o01eg o01eg deleted the python-log-exceptions branch June 9, 2019 08:20
@Vezzra Vezzra modified the milestones: Next Release, v0.4.9 Sep 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:feature The Issue/PR describes or implements a new game feature. component:internal The Issue/PR deals with any project component that has no explicit `component` label. status:merged All relevant commits of this PR were merged into the master development branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants