Przeglądaj źródła

fix: add log for timeout

Stefan Strigler 3 lat temu
rodzic
commit
edfcea7f43
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      apps/emqx_connector/src/emqx_connector_http.erl

+ 4 - 0
apps/emqx_connector/src/emqx_connector_http.erl

@@ -417,6 +417,10 @@ do_get_status(PoolName, Timeout) ->
             end
     catch
         exit:timeout ->
+            ?SLOG(error, #{
+                msg => "http_connector_pmap_failed",
+                reason => timeout
+            }),
             {error, timeout}
     end.