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

Issue 87570043: agent/mongo: log version of mongo

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by jameinel
Modified:
10 years ago
Reviewers:
natefinch, mp+215656, rog
Visibility:
Public.

Description

agent/mongo: log version of mongo Just before we start mongo, log the version so we know what we're running. This is mostly just to aid us in debugging log files from other people. https://code.launchpad.net/~jameinel/juju-core/log-mongo-version/+merge/215656 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 7

Patch Set 2 : agent/mongo: log version of mongo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -0 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M agent/mongo/mongo.go View 1 2 chunks +11 lines, -0 lines 0 comments Download
M agent/mongo/mongo_test.go View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 4
jameinel
Please take a look.
10 years ago (2014-04-14 13:04:31 UTC) #1
natefinch
lgtm, a couple minor suggestions. https://codereview.appspot.com/87570043/diff/1/agent/mongo/mongo.go File agent/mongo/mongo.go (right): https://codereview.appspot.com/87570043/diff/1/agent/mongo/mongo.go#newcode255 agent/mongo/mongo.go:255: logger.Debugf("found mongod at: %s", ...
10 years ago (2014-04-16 10:47:20 UTC) #2
rog
LGTM modulo the suggestions below. https://codereview.appspot.com/87570043/diff/1/agent/mongo/mongo.go File agent/mongo/mongo.go (right): https://codereview.appspot.com/87570043/diff/1/agent/mongo/mongo.go#newcode259 agent/mongo/mongo.go:259: logger.Infof("failed to read the ...
10 years ago (2014-04-16 11:35:51 UTC) #3
jameinel
10 years ago (2014-04-16 11:39:24 UTC) #4
Please take a look.

https://codereview.appspot.com/87570043/diff/1/agent/mongo/mongo.go
File agent/mongo/mongo.go (right):

https://codereview.appspot.com/87570043/diff/1/agent/mongo/mongo.go#newcode255
agent/mongo/mongo.go:255: logger.Debugf("found mongod at: %s", mongopath)
On 2014/04/16 10:47:20, nate.finch wrote:
> maybe put this after the err check, just on the off chance we *don't* find
mongo
> there?  or change the message to "checking version of mongo at <path>?

I originally had it as one message, but then I wanted to make sure to log
something on error. But I realize we'll have that data as long as we put the
path in the output, so I'll fix it to just at the end. (Nicer not to have lots
of lines anyway.

https://codereview.appspot.com/87570043/diff/1/agent/mongo/mongo.go#newcode259
agent/mongo/mongo.go:259: logger.Infof("failed to read the output from %s
--version", mongopath)
On 2014/04/16 10:47:20, nate.finch wrote:
> should we log the error?  it could be "mongod not found"

logged
Sign in to reply to this message.

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