cf-for-k8s
cf-for-k8s copied to clipboard
Log output from run-task are not printed in cf app logs
trafficstars
Describe the bug
Currently, log output from cf run-task are not printed in cf logs APP_NAME
To Reproduce*
Steps to reproduce the behavior:
- Push an app
- Run
cf run-task APP_NAME --command "echo "LISTING" && pwd" --name test-run - Run
cf tasks APP_NAMEand wait till it is finished - Run `cf logs APP_NAME --recent | grep "LISTING"
- None found
Expected behavior
cf logs should print LISTING in its output.
Additional context
The logging team created a corresponding issue in logging repo.
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/174714409
The labels on this github issue will be updated when the story is started.
I believe this is captured by the logging team's issue here: https://github.com/cloudfoundry/cf-k8s-logging/issues/35