Skip to content

Commit 1146d42

Browse files
committed
fix: keep print() for "Reloading the server" message
This message is CLI-facing user feedback that must always be visible. Since the Logger uses only a NullHandler, logger.info() will silently drop the message if no handler is configured, which can happen during the reload subprocess lifecycle. Made-with: Cursor
1 parent 2010cc6 commit 1146d42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

robyn/reloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def stop_server(self) -> None:
127127

128128
def reload(self) -> None:
129129
self.stop_server()
130-
logger.info("Reloading the server")
130+
print("Reloading the server")
131131

132132
new_env = os.environ.copy()
133133
new_env["IS_RELOADER_RUNNING"] = "True" # This is used to check if a reloader is already running

0 commit comments

Comments
 (0)