Use 24-hour clock when adding timestamps to log file names. (#92)

Co-authored-by: andreafa <andreafa@amazon.com>
pull/110/head
Andrea Fagiani 3 years ago committed by GitHub
parent 47d8188b3a
commit 1c97cfe43c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -80,7 +80,7 @@ func main() {
os.Exit(0)
}
date := time.Now().Format("2006_01_02_03_04_05")
date := time.Now().Format("2006_01_02_15_04_05")
tmpdir := os.TempDir()
f, err := os.OpenFile(filepath.Join(tmpdir, fmt.Sprintf("noisetorch-%s.log", date)), os.O_RDWR|os.O_CREATE|os.O_APPEND, 0644)
if err != nil {

Loading…
Cancel
Save