1
0
mirror of https://github.com/nxshock/gron.git synced 2024-11-27 03:41:00 +05:00

Format message

This commit is contained in:
nxshock 2022-03-29 21:27:29 +05:00
parent 1db1c307d3
commit 62ed212e3c

View File

@ -65,7 +65,7 @@ func handleForceStart(w http.ResponseWriter, r *http.Request) {
if err != nil {
host = r.RemoteAddr
}
log.WithField("job", "http_server").Printf("forced start %s from %s", job.Name, host)
log.WithField("job", "http_server").Printf("Forced start %s from %s.", job.Name, host)
go job.Run()
time.Sleep(time.Second / 4) // wait some time for job start
http.Redirect(w, r, "/", http.StatusTemporaryRedirect)