Emilio Gagliardi
08/22/2023, 6:49 PMprint()
or <http://logger.info|logger.info>()
don't output anything when inside a node function? I confirmed the logger works fine and can output an INFO message when in the nodes.py file, but nothing inside function definitions gets output... it just seemed to start happening in a new pipeline I created and started working on.
logger = logging.getLogger("custom_logger")
<http://logger.info|logger.info>("custom logger is working") <- prints fine
def extract_stable_channel_docs(data):
<http://logger.info|logger.info>("extract from mongo") <- nothing
<http://logger.info|logger.info>(f"num items {len(data)}") <- nothing
hello_world() <- contains a print() nothing
return data
Juan Luis
08/23/2023, 11:32 AM<http://logging.info|logging.info>
outside the node function works, but inside it doesn't?
about print
, which uses a different mechanism, it's worth looking into as well.
if you can craft a minimal example for us to reproduce, that would be helpfulEmilio Gagliardi
08/27/2023, 1:15 AMJuan Luis
08/28/2023, 7:01 AM