mirror of https://github.com/matrix-org/gomatrix
Removed logging and fixed formatting
This commit is contained in:
parent
3c91bb314d
commit
07fa859cf3
|
@ -9,7 +9,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"path"
|
"path"
|
||||||
|
@ -564,9 +563,8 @@ func (cli *Client) UploadToContentRepo(content io.Reader, contentType string, co
|
||||||
Code: res.StatusCode,
|
Code: res.StatusCode,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.Printf("Upload request failed: %s", string(contents))
|
|
||||||
return nil, HTTPError{
|
return nil, HTTPError{
|
||||||
Message: "Upload request failed" + string(contents),
|
Message: "Upload request failed: " + string(contents),
|
||||||
Code: res.StatusCode,
|
Code: res.StatusCode,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue