summaryrefslogtreecommitdiffstats
path: root/golang/cmd/fatcatd
diff options
context:
space:
mode:
Diffstat (limited to 'golang/cmd/fatcatd')
-rw-r--r--golang/cmd/fatcatd/main.go11
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 {