From e2377ea41e9a323a909666350e1a92e66359ca94 Mon Sep 17 00:00:00 2001 From: claravox Date: Wed, 4 Sep 2024 15:18:26 +0200 Subject: [PATCH] Log: write stdout option --- util/log.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/util/log.py b/util/log.py index f5899267f..897b9562c 100644 --- a/util/log.py +++ b/util/log.py @@ -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.