Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
f958de2da7 Merge 0467548acb into 50dd80b082 2025-03-13 01:09:10 +00:00
4 changed files with 5 additions and 4 deletions

View File

@@ -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 {

View File

@@ -83,7 +83,6 @@ type HttpSession struct {
sessionDone chan *HttpSession
}
// Deprecated: replace it with the GinModule
type HttpService struct {
service.Service

View File

@@ -14,7 +14,6 @@ import (
"time"
)
// Deprecated: replace it with the TcpModule
type TcpService struct {
tcpServer network.TCPServer
service.Service

View File

@@ -12,7 +12,6 @@ import (
"sync"
)
// Deprecated: replace it with the WSModule
type WSService struct {
service.Service
wsServer network.WSServer