Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

OpenFaas outputs and logging #1

Open
onlyjsmith opened this issue Dec 11, 2018 · 1 comment
Open

OpenFaas outputs and logging #1

onlyjsmith opened this issue Dec 11, 2018 · 1 comment
Labels
all-fns Relevant to all functions

Comments

@onlyjsmith
Copy link
Member

@onlyjsmith commented on Tue Dec 11 2018

Anything that an OpenFaas function writes to STDOUT will be sent back to the user. For R, this is like the result of print("all fine") or anything that writes/prints back to the console.

R also has a function message("some text") which writes to STDERR. We're still exploring exactly how OpenFaas works, but this STDERR is a separate stream to STDOUT and is often used in R for arbitrary logging. I've added a use of message in the OpenFaas version of this (https://github.com/disarm-platform/fn-covariate-extractor).

I think it's useful to think about logging while we're compiling these early functions.

@onlyjsmith onlyjsmith added the all-fns Relevant to all functions label Dec 11, 2018
@alexellis
Copy link

Hi @onlyjsmith please don't struggle, just head over to OpenFaaS and raise an issue or join Slack.

For your use-case you can just set combine_output to false to prevent stderr being returned to the user. This is documented in the workshop https://github.com/openfaas/workshop/

Alex

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
all-fns Relevant to all functions
Projects
None yet
Development

No branches or pull requests

2 participants