mirror of
				https://github.com/luscis/openlan.git
				synced 2025-10-31 12:36:26 +08:00 
			
		
		
		
	fix: libol: add datetime on log
This commit is contained in:
		| @@ -6,9 +6,11 @@ import ( | |||||||
| 	"github.com/luscis/openlan/pkg/config" | 	"github.com/luscis/openlan/pkg/config" | ||||||
| 	"github.com/luscis/openlan/pkg/libol" | 	"github.com/luscis/openlan/pkg/libol" | ||||||
| 	"github.com/luscis/openlan/pkg/switch" | 	"github.com/luscis/openlan/pkg/switch" | ||||||
|  | 	"log" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| func main() { | func main() { | ||||||
|  | 	log.SetFlags(0) | ||||||
| 	udp := api.GetEnv("ESPUDP", "4500") | 	udp := api.GetEnv("ESPUDP", "4500") | ||||||
| 	config.SetLocalUdp(udp) | 	config.SetLocalUdp(udp) | ||||||
| 	c := config.NewSwitch() | 	c := config.NewSwitch() | ||||||
|   | |||||||
| @@ -234,7 +234,3 @@ func (s *SubLogger) Error(format string, v ...interface{}) { | |||||||
| func (s *SubLogger) Fatal(format string, v ...interface{}) { | func (s *SubLogger) Fatal(format string, v ...interface{}) { | ||||||
| 	s.logger.Write(FATAL, s.Fmt(format), v...) | 	s.logger.Write(FATAL, s.Fmt(format), v...) | ||||||
| } | } | ||||||
|  |  | ||||||
| func init() { |  | ||||||
| 	log.SetFlags(0) |  | ||||||
| } |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Daniel Ding
					Daniel Ding