diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-09 19:07:25 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-09 19:07:25 -0700 |
commit | 12e2e04bcfb48e543d0fb2b8f45ae071363fe54e (patch) | |
tree | c5d802b3aa2bfebbfe7dd3b49216c4bb34867840 /golang/cmd/fatcatd/main.go | |
parent | 6fceb914a9479b7a6c19a0f54971b3bd580146df (diff) | |
download | fatcat-12e2e04bcfb48e543d0fb2b8f45ae071363fe54e.tar.gz fatcat-12e2e04bcfb48e543d0fb2b8f45ae071363fe54e.zip |
logrus logging
Diffstat (limited to 'golang/cmd/fatcatd/main.go')
-rw-r--r-- | golang/cmd/fatcatd/main.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/golang/cmd/fatcatd/main.go b/golang/cmd/fatcatd/main.go index 94455bf8..c0668ed1 100644 --- a/golang/cmd/fatcatd/main.go +++ b/golang/cmd/fatcatd/main.go @@ -2,9 +2,9 @@ package main import ( - "log" "os" + log "github.com/sirupsen/logrus" loads "github.com/go-openapi/loads" flags "github.com/jessevdk/go-flags" @@ -12,8 +12,17 @@ import ( "git.archive.org/bnewbold/fatcat/golang/restapi/operations" ) +func init() { + + // not default of stderr + log.SetOutput(os.Stdout); + +} + func main() { + log.Warn("Starting up..."); + // load embedded swagger file swaggerSpec, err := loads.Analyzed(restapi.SwaggerJSON, "") if err != nil { |