1
0
mirror of https://github.com/beego/bee.git synced 2025-07-12 14:51:01 +00:00

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

View File

@ -16,7 +16,6 @@ package main
import (
"bytes"
"github.com/howeyc/fsnotify"
"os"
"os/exec"
"regexp"
@ -24,6 +23,8 @@ import (
"strings"
"sync"
"time"
"github.com/howeyc/fsnotify"
)
var (
@ -209,7 +210,7 @@ func Kill() {
// Restart kills the running command process and starts it again
func Restart(appname string) {
logger.Debugf("Kill running process")
logger.Debugf("Kill running process", __FILE__(), __LINE__())
Kill()
go Start(appname)
}