Skip to content

Conversation

@FloThinksPi
Copy link
Member

@FloThinksPi FloThinksPi commented Dec 8, 2020

  • A short explanation of the proposed change:

We found that our cc_workers do not log db-queries and anymore.
Maybe they do not log anything, we did not go in depth what is logged and what not.

We found that in cloud controller worker environments the logger is set before steno is
initialised.
This leads to cc.background type logs not being emitted as all steno sinks
are missing for the respective logger.
This PR reorders the logger initialisation to be after steno init.
With this we see logs being correctly emitted again.

  • An explanation of the use cases your change solves

We need logs 😃

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the master branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

We found that in cloud controller worker environments the logger is set
before steno is
initialised.
This leads to cc.background type logs not being emitted as all steno
sinks
are missing for the respective logger.
This commit reorders the logger initialisation to be after steno init.

Co-authored-by: Johannes Haass <45264872+johha@users.noreply.github.com>
@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/176057635

The labels on this github issue will be updated when the story is started.

@cf-gitbot

This comment has been minimized.

@sweinstein22 sweinstein22 changed the base branch from master to main December 9, 2020 00:34
@weymanf weymanf merged commit f104fcb into cloudfoundry:main Dec 11, 2020
@weymanf
Copy link
Contributor

weymanf commented Dec 11, 2020

@FloThinksPi Can you a deploy a fixed version of this and see that things are being logged correctly?

@FloThinksPi FloThinksPi deleted the fix_worker_logging branch December 14, 2020 08:47
@FloThinksPi
Copy link
Member Author

@weymanf yes we could observe more logging again with this patch on a real landscape:
image
I suppose this is now the intended behaviour as we enabled debug logs and we really see them now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants