Hello Gentlemen,
I have this simple function:
def validate(self):
print("Hello from validate()")
In an instance running not in productive mode (“bench disable-production”) it shows up immediately in the log of the started bench, when the belonging DocType gets validated:
11:06:10 web.1 | * Debugger is active!
11:06:10 web.1 | * Debugger PIN: 308-597-710
11:06:28 web.1 | Hello from validate()
When I execute this on an instance with production mode enabled (“bench setup production”) the output is written to frappe-bench/logs/web.log, but only if I issue a “bench restart --supervisor” command.
I guess the print()ed output is buffered somewhere and flushed upon restart.
Is there some kind of configuration to write the output immediately to web.log?
It’s a bit cumbersome to restart the bench just to view some log entries.
I’m using bench 5.7.5 and frappe 13.19.0.