cf-for-k8s icon indicating copy to clipboard operation
cf-for-k8s copied to clipboard

Log output from run-task are not printed in cf app logs

Open Syerram opened this issue 5 years ago • 2 comments
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:

  1. Push an app
  2. Run cf run-task APP_NAME --command "echo "LISTING" && pwd" --name test-run
  3. Run cf tasks APP_NAME and wait till it is finished
  4. Run `cf logs APP_NAME --recent | grep "LISTING"
  5. None found

Expected behavior

cf logs should print LISTING in its output.

Additional context

The logging team created a corresponding issue in logging repo.

Syerram avatar Sep 08 '20 17:09 Syerram

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.

cf-gitbot avatar Sep 08 '20 17:09 cf-gitbot

I believe this is captured by the logging team's issue here: https://github.com/cloudfoundry/cf-k8s-logging/issues/35

jamespollard8 avatar Sep 08 '20 17:09 jamespollard8