Fixes the filename and lineNo in debug log message

This commit is contained in:
Faissal Elamraoui
2016-11-14 18:02:29 +01:00
committed by Faissal Elamraoui
parent c3c264ddb5
commit deacdaa667
9 changed files with 27 additions and 17 deletions

2
run.go
View File

@@ -99,7 +99,7 @@ func runApp(cmd *Command, args []string) int {
logger.Infof("Using '%s' as 'appname'", appname)
logger.Debugf("Current path: %s", currpath)
logger.Debugf("Current path: %s", __FILE__(), __LINE__(), currpath)
if runmode == "prod" || runmode == "dev" {
os.Setenv("BEEGO_RUNMODE", runmode)