Can I access the context from a pipeline function,...
# announcements
k
Can I access the context from a pipeline function, in order to log some output? For example, I have a pipeline with a solid just to log
tokens
right now. Can I log the tokens directly from the pipeline?
Copy code
@solid
def print_tokens(context, tokens):
    <http://context.log.info|context.log.info>(str(tokens))

    return tokens


@pipeline
def test_tokenize():
    tokens = tokenize()
    print_tokens(tokens)