Skip to content

Commit

Permalink
Update out_s3.go
Browse files Browse the repository at this point in the history
  • Loading branch information
riuvshyn authored Jan 28, 2020
1 parent 54db828 commit ed11adf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions out_s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,10 @@ func FLBPluginExit() int {
func obfuscateLog(message string) string {
res := ""
msgLen := len(message)
if message != "" {
if msgLen > 0 {
if msgLen >= 3 {
res = message[:1] + "..." + message[msgLen-1:]
} else if msgLen < 3 && msgLen > 0 {
} else if msgLen < 3 {
res = message[:1] + "..."
}
}
Expand Down

0 comments on commit ed11adf

Please sign in to comment.