Fix line separators (LF only now)
This commit is contained in:
parent
1eb278c4b9
commit
ed2d0063f0
5
main.go
5
main.go
@ -8,7 +8,6 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -24,8 +23,8 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create log file and set output
|
// Create log file and set output
|
||||||
file, _ := os.Create("logs/log-" + time.Now().String() + ".log")
|
//file, _ := os.Create("logs/log-" + time.Now().String() + ".log")
|
||||||
log.SetOutput(file)
|
//log.SetOutput(file)
|
||||||
|
|
||||||
// Connect to database
|
// Connect to database
|
||||||
app.Db = database.ConnectDB(&app)
|
app.Db = database.ConnectDB(&app)
|
||||||
|
Loading…
Reference in New Issue
Block a user