Skip to content

Commit

Permalink
print runtime info
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastiaanKlippert committed Sep 13, 2017
1 parent 5e8deed commit 3e77191
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"log"
"net/http"
"os"
"runtime"
"time"
)

Expand All @@ -18,6 +19,8 @@ var (

func main() {

log.Printf("Go version %s running on %s %s", runtime.Version(), runtime.GOOS, runtime.GOARCH)

flag.Parse()

if *apiHost == "" {
Expand Down
2 changes: 1 addition & 1 deletion meterdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (md *MeterData) Parse() error {
}
}
if err := scanner.Err(); err != nil {
return fmt.Errorf("Error scanning data: %s", err)
return fmt.Errorf("error scanning data: %s", err)
}

md.parsed = true
Expand Down

0 comments on commit 3e77191

Please sign in to comment.