Add calling method to debug level log messages

This commit is contained in:
Andrew J Yao
2019-07-23 08:08:15 -07:00
parent 2c092e8d04
commit d7a82e353b
3 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -3,15 +3,15 @@ package main
import (
"github.com/vulcanize/vulcanizedb/cmd"
log "github.com/sirupsen/logrus"
"os"
log "github.com/sirupsen/logrus"
)
func main() {
log.SetFormatter(&log.JSONFormatter{
PrettyPrint: true,
})
log.SetReportCaller(true)
file, err := os.OpenFile("vulcanizedb.log",
os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
if err == nil {