Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Mar 20, 2020
1 parent f803865 commit adbd0f0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<p align="center">A Real Time Messaging Server.</p>
<p align="center">
<img src="https://travis-ci.org/Clivern/Beaver.svg?branch=master">
<img src="https://img.shields.io/badge/Version-1.2.1-red.svg">
<img src="https://img.shields.io/badge/Version-1.2.2-red.svg">
<img src="https://goreportcard.com/badge/github.com/Clivern/Beaver">
<img src="https://img.shields.io/badge/LICENSE-MIT-orange.svg">
</p>
Expand Down
12 changes: 8 additions & 4 deletions beaver.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,16 @@ func main() {
gin.SetMode(gin.ReleaseMode)
gin.DisableConsoleColor()

logFile := fmt.Sprintf("%s/gin.logs", viper.GetString("log.path"))
f, err:= os.Create(logFile)
logFile := fmt.Sprintf("%s/gin.log", viper.GetString("log.path"))

f, err := os.Create(logFile)

if err != nil {
panic(fmt.Sprintf("Error while create log file [%s]: %s",
panic(fmt.Sprintf(
"Error while create log file [%s]: %s",
logFile,
err.Error()))
err.Error(),
))
}

gin.DefaultWriter = io.MultiWriter(f)
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module github.com/clivern/beaver

go 1.14

require (
github.com/BurntSushi/toml v0.3.1 // indirect
github.com/dgrijalva/jwt-go v3.2.0+incompatible
Expand Down

0 comments on commit adbd0f0

Please sign in to comment.