Skip to content

Commit

Permalink
Added logging configuration for #300
Browse files Browse the repository at this point in the history
  • Loading branch information
mwetter committed Oct 18, 2019
1 parent 6a1dec9 commit 0fab7c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions buildingspy/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ BuildingsPy Changelog

Version 2.0.1, July 17, 2019 -- Release 2.0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Added logging configuration in JModelica CI testing. (Issue 300)
- Avoided text replace in binary files when merging libraries, which lead to
UnicodeDecodeError. (Issue 272)
- In regression tests, issue error if the name of the reference results
Expand Down
6 changes: 6 additions & 0 deletions buildingspy/development/jmodelica_run.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
# and simulation information.
###############################################################

# Configure logging, see https://github.com/lbl-srg/BuildingsPy/issues/300
logging.basicConfig(
level=0,
format='\n[%(levelname)s] (%(processName)-10s) %(message)s\n',
)

##############################################################
# Capture stdout of a Python function.
# From https://stackoverflow.com/questions/24277488/in-python-how-to-capture-the-stdout-from-a-c-shared-library-to-a-variable/29834357
Expand Down

0 comments on commit 0fab7c3

Please sign in to comment.