Skip to content

Commit

Permalink
log bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
beebeeoii committed Jan 21, 2022
1 parent 0820f46 commit 2707273
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion FyneApp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Website = "https://github.com/beebeeoii/lominus"
Name = "Lominus"
ID = "com.beebeeoii.lominus"
Version = "1.2.0"
Build = 106
Build = 107
4 changes: 2 additions & 2 deletions internal/cron/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 2707273

Please sign in to comment.