Skip to content

Commit

Permalink
Merge pull request #11 from Comcast/feature/go-kit-logging
Browse files Browse the repository at this point in the history
Feature/go kit logging
  • Loading branch information
johnabass authored Aug 31, 2017
2 parents e29c213 + 683d228 commit d71319f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 34 deletions.
41 changes: 18 additions & 23 deletions src/glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions src/glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@ package: .
homepage: https://github.com/Comcast/petasos
import:
- package: github.com/Comcast/webpa-common
version: 4748c84a43400ca47e78796759c2da55b097dc08
subpackages:
- concurrent
- device
- server
- service
version: 9f0810dec1058c339282960f3e34d9d94f8dd6be
5 changes: 2 additions & 3 deletions src/petasos/petasos.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

"github.com/Comcast/webpa-common/concurrent"
"github.com/Comcast/webpa-common/device"
"github.com/Comcast/webpa-common/logging"
"github.com/Comcast/webpa-common/server"
"github.com/Comcast/webpa-common/service"
"github.com/spf13/pflag"
Expand Down Expand Up @@ -39,8 +40,6 @@ func petasos(arguments []string) int {
return 1
}

logger.Info("Using configuration file: %s", v.ConfigFileUsed())

//
// Now, initialize the service discovery infrastructure
//
Expand All @@ -51,7 +50,7 @@ func petasos(arguments []string) int {
return 2
}

logger.Info("Service options: %#v", serviceOptions)
logging.Info(logger).Log("configurationFile", v.ConfigFileUsed(), "serviceOptions", serviceOptions)

var (
accessor = service.NewUpdatableAccessor(serviceOptions, nil)
Expand Down
5 changes: 3 additions & 2 deletions src/petasos/petasos.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
},

"log" : {
"file" : "console",
"level" : "DEBUG"
"file" : "stdout",
"level" : "DEBUG",
"json": true
}
}

0 comments on commit d71319f

Please sign in to comment.