Browse Source

chore(bridge config): add more context to timeout failure

Thales Macedo Garitezi 1 year ago
parent
commit
593f7601bd
1 changed files with 3 additions and 0 deletions
  1. 3 0
      apps/emqx_bridge/src/emqx_bridge_v2.erl

+ 3 - 0
apps/emqx_bridge/src/emqx_bridge_v2.erl

@@ -1182,6 +1182,9 @@ post_config_update([ConfRootKey, BridgeType, BridgeName], _Req, NewConf, OldConf
         {error, timeout} ->
             ErrorContext = #{
                 error => uninstall_timeout,
+                bridge_kind => ConfRootKey,
+                type => BridgeType,
+                name => BridgeName,
                 reason => <<
                     "Timed out trying to remove action or source.  Please try again and,"
                     " if the error persists, try disabling the connector before retrying."