Skip to content

Commit

Permalink
Fix some log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Jul 19, 2023
1 parent fe1550c commit 4b4eee4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/_apimeta/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func GetRequestUserAdminStatus(r *http.Request, rctx rcontext.RequestContext, us
isLocalAdmin, err := matrix.IsUserAdmin(rctx, r.Host, user.AccessToken, r.RemoteAddr)
if err != nil {
sentry.CaptureException(err)
rctx.Log.Error("Error verifying local admin: ", err)
rctx.Log.Debug("Error verifying local admin: ", err)
return isGlobalAdmin, false
}

Expand Down
2 changes: 1 addition & 1 deletion api/custom/exports.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func ExportServerData(r *http.Request, rctx rcontext.RequestContext, user _apime

isLocalAdmin, err := matrix.IsUserAdmin(rctx, serverName, user.AccessToken, r.RemoteAddr)
if err != nil {
rctx.Log.Error("Error verifying local admin: ", err)
rctx.Log.Debug("Error verifying local admin: ", err)
isLocalAdmin = false
}
if !isLocalAdmin {
Expand Down
2 changes: 1 addition & 1 deletion api/custom/quarantine.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func getQuarantineRequestInfo(r *http.Request, rctx rcontext.RequestContext, use
isLocalAdmin, err = matrix.IsUserAdmin(rctx, r.Host, user.AccessToken, r.RemoteAddr)
if err != nil {
sentry.CaptureException(err)
rctx.Log.Error("Error verifying local admin: ", err)
rctx.Log.Debug("Error verifying local admin: ", err)
canQuarantine = false
return canQuarantine, allowOtherHosts, isLocalAdmin
}
Expand Down

0 comments on commit 4b4eee4

Please sign in to comment.