Browse Source

添加日志

tangs 7 năm trước cách đây
mục cha
commit
a50aafb32b
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      src/main.go

+ 5 - 0
src/main.go

@@ -8,6 +8,7 @@ import (
 	"fs"
 	"github.com/Tangmz/tangs/log"
 	"time"
+	"os"
 )
 
 func main() {
@@ -37,6 +38,10 @@ func main() {
 
 	fs.Conf = config
 
+	path, _ := os.Getwd()
+	fmt.Println("current path is ", path)
+	log.Debug("current path is %v", path)
+
 	// 初始化router
 	fs.Router()
 	log.Debug("main start listen on port :5678")