use zap for logging (#1112)

Use zap for logging
This commit is contained in:
Jon Carl
2019-03-14 21:11:15 +05:30
committed by Vishal
parent c717f182b6
commit 0fc864f230
98 changed files with 2031 additions and 1223 deletions
+3 -3
View File
@@ -17,15 +17,15 @@ limitations under the License.
package storagesvc
import (
"log"
"net/url"
"github.com/pkg/errors"
)
func getQueryParamValue(urlString string, queryParam string) (string, error) {
url, err := url.Parse(urlString)
if err != nil {
log.Printf("Error parsing URL string: %s into URL", urlString)
return "", err
return "", errors.Wrapf(err, "error parsing URL string %q into URL", urlString)
}
return url.Query().Get(queryParam), nil
}