Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1332)

Issue 13587045: Add a worker to update loggo configuration.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by thumper
Modified:
10 years, 7 months ago
Reviewers:
mp+185421, fwereade
Visibility:
Public.

Description

Add a worker to update loggo configuration. With the logging config now specified in the environment configuration, we can watch to see if it changes. If it does, this worker updates the loggo configuration. You can now change the logging levels of a running juju environment using: juju set-env 'logging-config=<root>=WARNING;juju=INFO;juju.api=DEBUG' https://code.launchpad.net/~thumper/juju-core/logger-worker/+merge/185421 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add a worker to update loggo configuration. #

Patch Set 3 : Add a worker to update loggo configuration. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -2 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/machine.go View 2 chunks +4 lines, -2 lines 0 comments Download
M cmd/jujud/unit.go View 1 2 chunks +4 lines, -0 lines 0 comments Download
A worker/logger/logger.go View 1 1 chunk +75 lines, -0 lines 0 comments Download
A worker/logger/logger_test.go View 1 1 chunk +103 lines, -0 lines 0 comments Download
A worker/logger/package_test.go View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 7
thumper
Please take a look.
10 years, 7 months ago (2013-09-13 05:34:36 UTC) #1
fwereade
LGTM in itself, but I feel the agent.Config stuff is risky, and want to know ...
10 years, 7 months ago (2013-09-13 10:06:59 UTC) #2
fwereade
NOT LGTM I'm afraid. I know it's just writing a field that's not currently read ...
10 years, 7 months ago (2013-09-13 14:03:19 UTC) #3
thumper
Please take a look. https://codereview.appspot.com/13587045/diff/1/worker/logger/logger.go File worker/logger/logger.go (right): https://codereview.appspot.com/13587045/diff/1/worker/logger/logger.go#newcode57 worker/logger/logger.go:57: if err := logger.agentConfig.Write(); err ...
10 years, 7 months ago (2013-09-15 23:05:14 UTC) #4
thumper
Also had a chat with Ian about this just now. We have decided that we ...
10 years, 7 months ago (2013-09-15 23:35:28 UTC) #5
thumper
Please take a look.
10 years, 7 months ago (2013-09-15 23:44:53 UTC) #6
fwereade
10 years, 7 months ago (2013-09-19 09:01:53 UTC) #7
LGTM. Sorry about the frustration -- maybe we can argue about appropriate use of
a Config over beers at some point :).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b