mirror of
https://github.com/duanhf2012/origin.git
synced 2026-03-02 03:04:49 +08:00
Compare commits
1 Commits
e6232453ef
...
f958de2da7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f958de2da7 |
@@ -479,7 +479,11 @@ func setLogPath(args interface{}) error {
|
||||
return nil
|
||||
}
|
||||
logPath := strings.TrimSpace(args.(string))
|
||||
_, err := os.Stat(logPath)
|
||||
dir, err := os.Stat(logPath)
|
||||
if err != nil || dir.IsDir() == false {
|
||||
return errors.New("Not found dir " + logPath)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
err = os.MkdirAll(logPath, os.ModePerm)
|
||||
if err != nil {
|
||||
|
||||
@@ -83,7 +83,6 @@ type HttpSession struct {
|
||||
sessionDone chan *HttpSession
|
||||
}
|
||||
|
||||
// Deprecated: replace it with the GinModule
|
||||
type HttpService struct {
|
||||
service.Service
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// Deprecated: replace it with the TcpModule
|
||||
type TcpService struct {
|
||||
tcpServer network.TCPServer
|
||||
service.Service
|
||||
|
||||
@@ -12,7 +12,6 @@ import (
|
||||
"sync"
|
||||
)
|
||||
|
||||
// Deprecated: replace it with the WSModule
|
||||
type WSService struct {
|
||||
service.Service
|
||||
wsServer network.WSServer
|
||||
|
||||
Reference in New Issue
Block a user