mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
add debug log at beginning of running
This commit is contained in:
@@ -39,6 +39,7 @@ func (hc *HTTPClient) Type() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (hc *HTTPClient) Run(ctx context.Context) error {
|
func (hc *HTTPClient) Run(ctx context.Context) error {
|
||||||
|
hc.logger.Debug("running")
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
@@ -148,6 +148,7 @@ func (hs *HTTPServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (hs *HTTPServer) Run(ctx context.Context) error {
|
func (hs *HTTPServer) Run(ctx context.Context) error {
|
||||||
|
hs.logger.Debug("running")
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ func (mi *MIDIInput) Type() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (mi *MIDIInput) Run(ctx context.Context) error {
|
func (mi *MIDIInput) Run(ctx context.Context) error {
|
||||||
|
mi.logger.Debug("running")
|
||||||
defer midi.CloseDriver()
|
defer midi.CloseDriver()
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ func (mo *MIDIOutput) Type() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (mo *MIDIOutput) Run(ctx context.Context) error {
|
func (mo *MIDIOutput) Run(ctx context.Context) error {
|
||||||
|
mo.logger.Debug("running")
|
||||||
defer midi.CloseDriver()
|
defer midi.CloseDriver()
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ func (mc *MQTTClient) Type() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (mc *MQTTClient) Run(ctx context.Context) error {
|
func (mc *MQTTClient) Run(ctx context.Context) error {
|
||||||
|
mc.logger.Debug("running")
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ func (nc *NATSClient) Type() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (nc *NATSClient) Run(ctx context.Context) error {
|
func (nc *NATSClient) Run(ctx context.Context) error {
|
||||||
|
nc.logger.Debug("running")
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ func (pc *PSNClient) Type() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (pc *PSNClient) Run(ctx context.Context) error {
|
func (pc *PSNClient) Run(ctx context.Context) error {
|
||||||
|
pc.logger.Debug("running")
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ func (sc *SerialClient) SetupPort() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (sc *SerialClient) Run(ctx context.Context) error {
|
func (sc *SerialClient) Run(ctx context.Context) error {
|
||||||
|
sc.logger.Debug("running")
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ func (scs *SIPCallServer) Type() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (scs *SIPCallServer) Run(ctx context.Context) error {
|
func (scs *SIPCallServer) Run(ctx context.Context) error {
|
||||||
|
scs.logger.Debug("running")
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
@@ -115,6 +115,7 @@ func (sds *SIPDTMFServer) Type() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (sds *SIPDTMFServer) Run(ctx context.Context) error {
|
func (sds *SIPDTMFServer) Run(ctx context.Context) error {
|
||||||
|
sds.logger.Debug("running")
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ func (tc *TCPClient) Type() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (tc *TCPClient) Run(ctx context.Context) error {
|
func (tc *TCPClient) Run(ctx context.Context) error {
|
||||||
|
tc.logger.Debug("running")
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ ClientRead:
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ts *TCPServer) Run(ctx context.Context) error {
|
func (ts *TCPServer) Run(ctx context.Context) error {
|
||||||
|
ts.logger.Debug("running")
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ func (i *TimeInterval) Type() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (i *TimeInterval) Run(ctx context.Context) error {
|
func (i *TimeInterval) Run(ctx context.Context) error {
|
||||||
|
i.logger.Debug("running")
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ func (t *TimeTimer) Type() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *TimeTimer) Run(ctx context.Context) error {
|
func (t *TimeTimer) Run(ctx context.Context) error {
|
||||||
|
t.logger.Debug("running")
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ func (uc *UDPClient) SetupConn() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (uc *UDPClient) Run(ctx context.Context) error {
|
func (uc *UDPClient) Run(ctx context.Context) error {
|
||||||
|
uc.logger.Debug("running")
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ func (um *UDPMulticast) Type() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (um *UDPMulticast) Run(ctx context.Context) error {
|
func (um *UDPMulticast) Run(ctx context.Context) error {
|
||||||
|
um.logger.Debug("running")
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ func (us *UDPServer) Type() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (us *UDPServer) Run(ctx context.Context) error {
|
func (us *UDPServer) Run(ctx context.Context) error {
|
||||||
|
us.logger.Debug("running")
|
||||||
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
router, ok := ctx.Value(route.RouterContextKey).(route.RouteIO)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
Reference in New Issue
Block a user