forked from TrueCloudLab/frostfs-s3-gw
[#318] Log unmatched requests
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
529ec7e0b9
commit
7b86bac6ee
2 changed files with 5 additions and 4 deletions
|
@ -293,7 +293,7 @@ func determineBucketOperation(r *http.Request) string {
|
|||
}
|
||||
}
|
||||
|
||||
return ""
|
||||
return "UnmatchedBucketOperation"
|
||||
}
|
||||
|
||||
func determineObjectOperation(r *http.Request) string {
|
||||
|
@ -357,12 +357,12 @@ func determineObjectOperation(r *http.Request) string {
|
|||
}
|
||||
}
|
||||
|
||||
return ""
|
||||
return "UnmatchedObjectOperation"
|
||||
}
|
||||
|
||||
func determineGeneralOperation(r *http.Request) string {
|
||||
if r.Method == http.MethodGet {
|
||||
return ListBucketsOperation
|
||||
}
|
||||
return ""
|
||||
return "UnmatchedOperation"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue