From 48ccb640acb6c9af61f74aa54ccecec2479b149a Mon Sep 17 00:00:00 2001 From: beebeeoii Date: Fri, 21 Jan 2022 17:24:39 +0800 Subject: [PATCH] log bug fix --- FyneApp.toml | 2 +- internal/indexing/indexing.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FyneApp.toml b/FyneApp.toml index a79fc56..d2b3fd1 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 = 107 + Build = 108 diff --git a/internal/indexing/indexing.go b/internal/indexing/indexing.go index c267fbb..2eca86a 100644 --- a/internal/indexing/indexing.go +++ b/internal/indexing/indexing.go @@ -59,7 +59,7 @@ func Build(dir string) (map[string]api.File, error) { // CreateIndexMap writes the IndexMap to a csv file for which can be loaded for the next sync. func CreateIndexMap(indexMap IndexMap) error { - logs.Logger.Infof("Creating index map: %s\n", INDEX_MAP_FILE_NAME) + logs.Logger.Infof("Creating index map: %s", INDEX_MAP_FILE_NAME) indexMapPath, getIndexMapPathErr := getIndexMapPath() if getIndexMapPathErr != nil { @@ -83,7 +83,7 @@ func CreateIndexMap(indexMap IndexMap) error { // LoadIndexMap loads the IndexMap csv file back to a map of IndexMapEntry, with the key being the file Id. func LoadIndexMap(file io.Reader) (map[string]IndexMapEntry, error) { - logs.Logger.Infof("Loading index map: %s\n", INDEX_MAP_FILE_NAME) + logs.Logger.Infof("Loading index map: %s", INDEX_MAP_FILE_NAME) r := csv.NewReader(file) indexMap := map[string]IndexMapEntry{}