add debug log at beginning of running

This commit is contained in:
Joel Wetzell
2026-02-07 12:40:30 -06:00
parent 9ba3a88e8c
commit 37c7a23063
17 changed files with 17 additions and 7 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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