Skip to content

Commit

Permalink
Merge pull request #2256 from j-bryan/messagehandler_writeto
Browse files Browse the repository at this point in the history
Removes writeTo option for message in MessageHandler
  • Loading branch information
joshua-cogliati-inl authored Feb 2, 2024
2 parents 83035d3 + 4543502 commit e5e212c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ravenframework/MessageHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def error(self, caller, etype, message, tag='ERROR', verbosity='silent', color=N
sys.tracebacklimit = 0
raise etype(message)

def message(self, caller, message, tag, verbosity, color=None, writeTo=sys.stdout, forcePrint=False):
def message(self, caller, message, tag, verbosity, color=None, forcePrint=False):
"""
Print a message
@ In, caller, object, the entity desiring to print a message
Expand All @@ -250,8 +250,7 @@ def message(self, caller, message, tag, verbosity, color=None, writeTo=sys.stdou
if tag.lower().strip() == 'warning':
self.addWarning(message)
if okay:
print(msg, file=writeTo)
sys.stdout.flush()
print(msg, flush=True)

def addWarning(self, msg):
"""
Expand Down

0 comments on commit e5e212c

Please sign in to comment.