Skip to content

Commit

Permalink
Remove superfluous print (#14)
Browse files Browse the repository at this point in the history
* Remove superfluous print

* Print to stderr
  • Loading branch information
ccampo133 authored Sep 19, 2024
1 parent e3a901c commit 4f89fc9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ func main() {
parser.Command.SubcommandsOptional = true
parser.CommandHandler = func(command flags.Commander, args []string) error {
if command == nil {
log.SetOutput(os.Stderr)
if options.Daemon {
logFile := getSupervisordLogFile(options.Configuration)
Daemonize(logFile, runServer)
Expand Down
2 changes: 0 additions & 2 deletions xmlrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"crypto/sha1" //nolint:gosec
"encoding/hex"
"fmt"
"io"
"io/ioutil"
"net"
Expand Down Expand Up @@ -189,7 +188,6 @@ func (p *XMLRPC) startHTTPServer(user string, password string, protocol string,
continue
}
dir := filepath.Dir(filePath)
fmt.Println(dir)
mux.Handle("/log/"+realName+"/", http.StripPrefix("/log/"+realName+"/", http.FileServer(http.Dir(dir))))
}

Expand Down

0 comments on commit 4f89fc9

Please sign in to comment.