Browse Source

fix(emqx_ee_connector): improve log message on influxdb start failures

Erik Timan 3 years ago
parent
commit
44c0aae16b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib-ee/emqx_ee_connector/src/emqx_ee_connector_influxdb.erl

+ 2 - 2
lib-ee/emqx_ee_connector/src/emqx_ee_connector_influxdb.erl

@@ -254,7 +254,7 @@ do_start_client(
                         error => influxdb_client_not_alive, reason => Reason
                         error => influxdb_client_not_alive, reason => Reason
                     }),
                     }),
                     ?SLOG(warning, #{
                     ?SLOG(warning, #{
-                        msg => "starting influxdb connector failed - client is not alive",
+                        msg => "failed_to_start_influxdb_connector",
                         connector => InstId,
                         connector => InstId,
                         client => redact_auth(Client),
                         client => redact_auth(Client),
                         reason => Reason
                         reason => Reason
@@ -275,7 +275,7 @@ do_start_client(
         {error, Reason} ->
         {error, Reason} ->
             ?tp(influxdb_connector_start_failed, #{error => Reason}),
             ?tp(influxdb_connector_start_failed, #{error => Reason}),
             ?SLOG(warning, #{
             ?SLOG(warning, #{
-                msg => "starting influxdb connector failed",
+                msg => "failed_to_start_influxdb_connector",
                 connector => InstId,
                 connector => InstId,
                 reason => Reason
                 reason => Reason
             }),
             }),