Adds a prefix of the file of origin to log lines from the fprocess #80
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds a prefix of
stderr:
orstdout:
to log lines from the wrapped function process. This is important because the kubernetes log driver collapses stdout and stderr to a single collated file.Motivation and Context
This is an offshoot of our discussion on #73, which removed these prefixes in favor of piping to two different files (stderr and stdout). The discussion can be seen here
The discussion itself was a offshoot of #75
How Has This Been Tested?
Tested by creating another version of
chatty-fn
built with a local dev base ofof-watchdog
The image I used can be run:
cconger/chatty-fn:prefixed
I have invoked the function directly to yield the following outputs:
stdout.log
stderr.log
Also through faas log:
faas logs logger-prefixed --instance=false --name=false
Types of changes
Arguably an un-breaking change as it returns functionality that was previously expected.
Checklist:
git commit -s