From 78736ef4e0b0f86d16c291c6d71b9a2f8c26a139 Mon Sep 17 00:00:00 2001 From: Alexey Kostin Date: Thu, 10 May 2018 23:09:40 +0300 Subject: [PATCH] Pretty log with timestamp --- bt2qbt.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bt2qbt.go b/bt2qbt.go index 166012f..e4729ab 100644 --- a/bt2qbt.go +++ b/bt2qbt.go @@ -507,7 +507,7 @@ func main() { color.HiRed("Check that the qBittorrent is turned off and the directory %v and config %v is backed up.\n\n", qbitdir, config) fmt.Println("Press Enter to start") fmt.Scanln() - fmt.Println("Started") + log.Println("Started") totaljobs := len(resumefile) - 2 numjob := 1 var oldtags string @@ -568,6 +568,7 @@ func main() { } cfg.SaveTo(config) } + log.Println("Ended") fmt.Println("\nPress Enter to exit") fmt.Scanln() }