From 2707273ba81d3176bd8e7efa20b06565872607ea Mon Sep 17 00:00:00 2001 From: beebeeoii Date: Fri, 21 Jan 2022 17:23:00 +0800 Subject: [PATCH] log bug fix --- FyneApp.toml | 2 +- internal/cron/cron.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FyneApp.toml b/FyneApp.toml index 51ad6f7..a79fc56 100644 --- a/FyneApp.toml +++ b/FyneApp.toml @@ -5,4 +5,4 @@ Website = "https://github.com/beebeeoii/lominus" Name = "Lominus" ID = "com.beebeeoii.lominus" Version = "1.2.0" - Build = 106 + Build = 107 diff --git a/internal/cron/cron.go b/internal/cron/cron.go index 386b1dc..549db64 100644 --- a/internal/cron/cron.go +++ b/internal/cron/cron.go @@ -90,7 +90,7 @@ func GetLastRan() time.Time { func createJob(frequency int) (*gocron.Job, error) { return mainScheduler.Every(frequency).Hours().Do(func() { notifications.NotificationChannel <- notifications.Notification{Title: "Sync", Content: "Syncing in progress"} - logs.Logger.Infof("job started: %s\n", time.Now().Format(time.RFC3339)) + logs.Logger.Infof("job started: %s", time.Now().Format(time.RFC3339)) if appApp.GetOs() == "windows" { LastRanChannel <- GetLastRan().Format("2 Jan 15:04:05") } @@ -198,7 +198,7 @@ func createJob(frequency int) (*gocron.Job, error) { } } - logs.Logger.Infoln("job completed: %s\n", time.Now().Format(time.RFC3339)) + logs.Logger.Infof("job completed: %s", time.Now().Format(time.RFC3339)) } telegramInfoPath, getTelegramInfoPathErr := intTelegram.GetTelegramInfoPath()