Skip to content

Commit

Permalink
Log: write stdout option
Browse files Browse the repository at this point in the history
  • Loading branch information
claravox committed Sep 4, 2024
1 parent 0c28a0f commit e2377ea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions util/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ def _write(ctx, message):
ctx.writeLine('serverLog', message)


def write_stdout(ctx, message):
"""Write a message to stdout. Used for some of our scripts.
:param ctx: Combined type of a callback and rei struct
:param message: Message to write to log
"""
ctx.writeLine("stdout", message)


def debug(ctx, message):
""""Write a message to the log, if in a development environment.
Expand Down

0 comments on commit e2377ea

Please sign in to comment.