From 520380243d4caab4db33ffccc842c5c36da7c5a5 Mon Sep 17 00:00:00 2001 From: Michael Green <84688932+michael-j-green@users.noreply.github.com> Date: Fri, 5 May 2023 09:53:36 +1000 Subject: [PATCH] fix: suppress log entries for items in the import folder that already exist in the database --- gaseous-server/Classes/ImportGames.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gaseous-server/Classes/ImportGames.cs b/gaseous-server/Classes/ImportGames.cs index b13f618..be35aa9 100644 --- a/gaseous-server/Classes/ImportGames.cs +++ b/gaseous-server/Classes/ImportGames.cs @@ -46,7 +46,7 @@ namespace gaseous_server.Classes } else { - Logging.Log(Logging.LogType.Information, "Import Game", "Processing item " + GameFileImportPath); + //Logging.Log(Logging.LogType.Information, "Import Game", "Processing item " + GameFileImportPath); if (IsDirectory == false) { FileInfo fi = new FileInfo(GameFileImportPath); @@ -59,7 +59,10 @@ namespace gaseous_server.Classes DataTable importDB = db.ExecuteCMD(sql, dbDict); if ((Int64)importDB.Rows[0]["count"] > 0) { - Logging.Log(Logging.LogType.Information, "Import Game", " " + GameFileImportPath + " already in database - skipping"); + if (!GameFileImportPath.StartsWith(Config.LibraryConfiguration.LibraryImportDirectory)) + { + Logging.Log(Logging.LogType.Information, "Import Game", " " + GameFileImportPath + " already in database - skipping"); + } } else {