partage

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/partage.git
Log | Files | Refs

commit 18aa29fccc0769886a79c7171c407cede717c6c4
parent 1a43755a67ed08fa19e21615e035851fdd4b7b93
Author: Willy Goiffon <dev@z3bra.org>
Date:   Tue, 19 Oct 2021 12:38:38 +0200

Fix incorrect log messages

Diffstat:
Mpartage.go | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/partage.go b/partage.go @@ -148,7 +148,7 @@ func uploaderPut(w http.ResponseWriter, r *http.Request) { defer f.Close() if verbose { - log.Printf("Writing %d bytes to %s", r.ContentLength, tmp) + log.Printf("Writing %d bytes to %s", r.ContentLength, tmp.Name()) } if err = writefile(f, r.Body, r.ContentLength); err != nil { @@ -286,10 +286,6 @@ func main() { conf.expiry, _ = cfg.Section("").Key("expiry").Int64() } - if verbose { - log.Printf("Applied configuration:\n%s", conf) - } - if conf.chroot != "" { if verbose { log.Printf("Changing root to %s", conf.chroot)