add more text

This commit is contained in:
Zack Scholl 2018-09-21 22:29:54 -07:00
parent f3eb85dd95
commit 91532085c7
2 changed files with 7 additions and 3 deletions

View File

@ -131,14 +131,18 @@ func send(c *cli.Context) error {
}
}
fmt.Fprintf(os.Stderr,
"Sending %s %s name '%s'\nCode is: %s\nOn the other computer, please run:\n\ncroc %s",
"Sending %s %s name '%s'\nCode is: %s\nOn the other computer, please run:\n\ncroc %s\n\n",
humanize.Bytes(uint64(fsize)),
fileOrFolder,
filename,
codePhrase,
codePhrase,
)
return cr.Send(fname, codePhrase)
err = cr.Send(fname, codePhrase)
if err == nil {
fmt.Fprintf(os.Stderr, "\nTransfer complete")
}
return err
}
func receive(c *cli.Context) error {

View File

@ -14,7 +14,7 @@ func Run(port string) (err error) {
logger.SetLogLevel(DebugLevel)
go h.run()
log.Info("running relay on " + port)
log.Debug("running relay on " + port)
http.HandleFunc("/ws", func(w http.ResponseWriter, r *http.Request) {
serveWs(w, r)
})