ing
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package auth
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.loafle.net/commons_go/logging"
|
||||
oogwc "git.loafle.net/overflow/overflow_gateway_websocket/config"
|
||||
oogws "git.loafle.net/overflow/overflow_gateway_websocket/server"
|
||||
@@ -20,7 +18,7 @@ var (
|
||||
func ServletInit(sh oogws.ServerHandler) {
|
||||
cfg = oogwc.Config.Servlets[Name]
|
||||
if nil == cfg {
|
||||
logging.Logger().Panic(fmt.Sprintf("Webapp: config of servlet[%s] is not exist", Name))
|
||||
logging.Logger().Panicf("Webapp: config of servlet[%s] is not exist", Name)
|
||||
}
|
||||
|
||||
rpcGH := newGatewayRPCHandler()
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package data
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.loafle.net/commons_go/logging"
|
||||
oogwc "git.loafle.net/overflow/overflow_gateway_websocket/config"
|
||||
oogws "git.loafle.net/overflow/overflow_gateway_websocket/server"
|
||||
@@ -20,7 +18,7 @@ var (
|
||||
func ServletInit(sh oogws.ServerHandler) {
|
||||
cfg = oogwc.Config.Servlets[Name]
|
||||
if nil == cfg {
|
||||
logging.Logger().Panic(fmt.Sprintf("Webapp: config of servlet[%s] is not exist", Name))
|
||||
logging.Logger().Panicf("Webapp: config of servlet[%s] is not exist", Name)
|
||||
}
|
||||
|
||||
rpcGH := newGatewayRPCHandler()
|
||||
|
||||
@@ -60,7 +60,7 @@ func (sh *GatewayRPCHandlers) Handshake(socketCTX cwf.SocketContext, ctx *fastht
|
||||
|
||||
// var claims jwt.MapClaims
|
||||
// if claims, ok = token.Claims.(jwt.MapClaims); !ok || !token.Valid {
|
||||
// logging.Logger().Warn(fmt.Sprintf("Webapp: Token is not valid %v", token))
|
||||
// logging.Logger().Warnf("Webapp: Token is not valid %v", token)
|
||||
// return "", nil
|
||||
// }
|
||||
bProbeKey := ctx.Request.Header.Peek(oocmp.HTTPRequestHeaderKey_Probe_ProbeKey)
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package probe
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.loafle.net/commons_go/logging"
|
||||
oogwc "git.loafle.net/overflow/overflow_gateway_websocket/config"
|
||||
oogws "git.loafle.net/overflow/overflow_gateway_websocket/server"
|
||||
@@ -20,7 +18,7 @@ var (
|
||||
func ServletInit(sh oogws.ServerHandler) {
|
||||
cfg = oogwc.Config.Servlets[Name]
|
||||
if nil == cfg {
|
||||
logging.Logger().Panic(fmt.Sprintf("Webapp: config of servlet[%s] is not exist", Name))
|
||||
logging.Logger().Panicf("Webapp: config of servlet[%s] is not exist", Name)
|
||||
}
|
||||
|
||||
rpcGH := newGatewayRPCHandler()
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package probe
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.loafle.net/commons_go/logging"
|
||||
"git.loafle.net/commons_go/websocket_fasthttp/websocket"
|
||||
oogws "git.loafle.net/overflow/overflow_gateway_websocket/servlet"
|
||||
@@ -31,7 +29,7 @@ func (sh *SubscriberHandlers) OnSubscribe(channel string, message oos.SubscribeM
|
||||
}
|
||||
}
|
||||
default:
|
||||
logging.Logger().Warn(fmt.Sprintf("[PROBE] SubscriberHandler: Unknown TargetType %s", message.TargetType))
|
||||
logging.Logger().Warnf("[PROBE] SubscriberHandler: Unknown TargetType %s", message.TargetType)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user