Reduce the query unescape helper verbosity (#1447)
This commit is contained in:
parent
8060f54f27
commit
526a4dbd08
|
@ -120,7 +120,7 @@ func PathEscape(s string) string {
|
|||
func PathUnescape(s string) string {
|
||||
ret, err := url.PathUnescape(s)
|
||||
if err != nil {
|
||||
log.Errorf("unable to PathUnescape '%s': %+v", s, err)
|
||||
log.Debugf("unable to PathUnescape '%s': %+v", s, err)
|
||||
return s
|
||||
}
|
||||
return ret
|
||||
|
@ -129,7 +129,7 @@ func PathUnescape(s string) string {
|
|||
func QueryUnescape(s string) string {
|
||||
ret, err := url.QueryUnescape(s)
|
||||
if err != nil {
|
||||
log.Errorf("unable to QueryUnescape '%s': %+v", s, err)
|
||||
log.Debugf("unable to QueryUnescape '%s': %+v", s, err)
|
||||
return s
|
||||
}
|
||||
return ret
|
||||
|
|
Loading…
Reference in a new issue