From 4adca2734499e8296dac11b87949074108dd4275 Mon Sep 17 00:00:00 2001 From: Christoph Polcin Date: Sat, 15 Oct 2022 14:44:49 +0200 Subject: [PATCH] uses log instead of fmt --- requests.go | 4 ++-- utils.go | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/requests.go b/requests.go index dbac928..8f69a3d 100644 --- a/requests.go +++ b/requests.go @@ -2,8 +2,8 @@ package gowebdav import ( "bytes" - "fmt" "io" + "log" "net/http" "path" "strings" @@ -181,7 +181,7 @@ func (c *Client) copymove(method string, oldpath string, newpath string, overwri case 207: // TODO handle multistat errors, worst case ... - log(fmt.Sprintf(" TODO handle %s - %s multistatus result %s", method, oldpath, String(data))) + log.Printf("TODO handle %s - %s multistatus result %s\n", method, oldpath, String(data)) case 409: err := c.createParentCollection(newpath) diff --git a/utils.go b/utils.go index c7a65ad..d466160 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,6 @@ package gowebdav import ( "bytes" "encoding/xml" - "fmt" "io" "net/url" "strconv" @@ -11,10 +10,6 @@ import ( "time" ) -func log(msg interface{}) { - fmt.Println(msg) -} - // PathEscape escapes all segments of a given path func PathEscape(path string) string { s := strings.Split(path, "/")