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:

committed by
Faissal Elamraoui

parent
c3c264ddb5
commit
deacdaa667
5
watch.go
5
watch.go
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user