Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug logging #935

Merged
merged 1 commit into from
Feb 5, 2016
Merged

Add debug logging #935

merged 1 commit into from
Feb 5, 2016

Conversation

2opremio
Copy link
Contributor

@2opremio 2opremio commented Feb 5, 2016

No description provided.

@@ -9,6 +8,7 @@ import (

"github.com/gorilla/mux"

. "github.com/weaveworks/scope/common/log"

This comment was marked as abuse.

@peterbourgon
Copy link
Contributor

re: dot imports

@2opremio
Copy link
Contributor Author

2opremio commented Feb 5, 2016

@peterbourgon Weave uses dots for logging throughout it's sourcecode (that's where I took this from). Anyways, I discussed it with @tomwilkie and I am going to use logrus directly, reusing weave's formatter for uniformity.

@2opremio 2opremio force-pushed the debug-logging branch 2 times, most recently from c00b6cf to 8b8a332 Compare February 5, 2016 16:06
@@ -32,16 +32,19 @@ func appMain() {
var (
window = flag.Duration("window", 15*time.Second, "window")
listen = flag.String("http.address", ":"+strconv.Itoa(xfer.AppPort), "webserver listen address")
logLevel = flag.String("log-level", "info", "logging threshold level: debug|info|warn|error|fatal|panic")

This comment was marked as abuse.

@peterbourgon
Copy link
Contributor

I'd vote for not aliasing the logrus import, but if you feel strongly that it should be aliased to log I guess that's fine. With those things fixed, LGTM.

2opremio pushed a commit that referenced this pull request Feb 5, 2016
@2opremio 2opremio merged commit 279871c into master Feb 5, 2016
@2opremio 2opremio deleted the debug-logging branch February 5, 2016 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants