mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-26 23:42:29 -05:00
Update logging format to include source file/line
This commit is contained in:
parent
48487c230b
commit
9be12a3c7e
3
main.go
3
main.go
@ -50,6 +50,9 @@ func init() {
|
|||||||
if !static_dir.IsDir() {
|
if !static_dir.IsDir() {
|
||||||
log.Fatal(dir_err_str)
|
log.Fatal(dir_err_str)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Setup the logging flags to be printed
|
||||||
|
log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)
|
||||||
}
|
}
|
||||||
|
|
||||||
func rootHandler(w http.ResponseWriter, r *http.Request) {
|
func rootHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
Loading…
Reference in New Issue
Block a user