Skip to content

Commit adbd0f0

Browse files
committed
bump version
1 parent f803865 commit adbd0f0

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<p align="center">A Real Time Messaging Server.</p>
55
<p align="center">
66
<img src="https://travis-ci.org/Clivern/Beaver.svg?branch=master">
7-
<img src="https://img.shields.io/badge/Version-1.2.1-red.svg">
7+
<img src="https://img.shields.io/badge/Version-1.2.2-red.svg">
88
<img src="https://goreportcard.com/badge/github.com/Clivern/Beaver">
99
<img src="https://img.shields.io/badge/LICENSE-MIT-orange.svg">
1010
</p>

beaver.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,16 @@ func main() {
5656
gin.SetMode(gin.ReleaseMode)
5757
gin.DisableConsoleColor()
5858

59-
logFile := fmt.Sprintf("%s/gin.logs", viper.GetString("log.path"))
60-
f, err:= os.Create(logFile)
59+
logFile := fmt.Sprintf("%s/gin.log", viper.GetString("log.path"))
60+
61+
f, err := os.Create(logFile)
62+
6163
if err != nil {
62-
panic(fmt.Sprintf("Error while create log file [%s]: %s",
64+
panic(fmt.Sprintf(
65+
"Error while create log file [%s]: %s",
6366
logFile,
64-
err.Error()))
67+
err.Error(),
68+
))
6569
}
6670

6771
gin.DefaultWriter = io.MultiWriter(f)

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module github.com/clivern/beaver
22

3+
go 1.14
4+
35
require (
46
github.com/BurntSushi/toml v0.3.1 // indirect
57
github.com/dgrijalva/jwt-go v3.2.0+incompatible

0 commit comments

Comments
 (0)