Permalink
Browse files

lion for logging

  • Loading branch information...
peter-edge committed Jan 16, 2017
1 parent a0cf2d5 commit d33ba54889285a717edef4948827527058790293
Showing with 8 additions and 3 deletions.
  1. +8 −3 daemon/daemon.go
@@ -5,6 +5,7 @@ import (
"net/http"
"os"

"go.pedge.io/lion"
"go.pedge.io/lion/env"
"go.pedge.io/openflights"
"go.pedge.io/proto/server"
@@ -18,11 +19,15 @@ type DoOptions struct {

// Do runs the daemon.
func Do(options DoOptions) error {
client, err := openflights.NewDefaultServerClient()
if err != nil {
if err := envlion.Setup(); err != nil {
return err
}
if err := envlion.Setup(); err != nil {
client, err := openflights.NewDefaultServerClientWithOptions(
openflights.CodeStoreOptions{
LogFunc: lion.Infof,
},
)
if err != nil {
return err
}
return protoserver.GetAndServeWithHTTP(

0 comments on commit d33ba54

Please sign in to comment.