Explorar el Código

chore: remove the `unauthorized` type for `from` field

JianBo He hace 2 años
padre
commit
bdf24d0ec8
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      apps/emqx_dashboard/src/emqx_dashboard_audit.erl

+ 1 - 2
apps/emqx_dashboard/src/emqx_dashboard_audit.erl

@@ -37,8 +37,7 @@ log(Meta0) ->
     ok.
 
 from(jwt_token) -> "dashboard";
-from(api_key) -> "rest_api";
-from(_) -> "unauthorized".
+from(_) -> "rest_api".
 
 level(get, _Code, _) -> debug;
 level(_, Code, _) when Code >= 200 andalso Code < 300 -> info;