adjust some of the logging
This commit is contained in:
		| @@ -328,7 +328,7 @@ public class CharacterDataFactory | ||||
|                 var gamePath = item.GamePaths.First().ToLowerInvariant(); | ||||
|                 if (string.Equals(penumResolve, gamePath, StringComparison.Ordinal)) | ||||
|                 { | ||||
|                     Logger.Debug("PenumResolve was same as GamePath, not adding " + item); | ||||
|                     Logger.Verbose("PenumResolve was same as GamePath, not adding " + item); | ||||
|                     transientResourceManager.RemoveTransientResource(charaPointer, item); | ||||
|                 } | ||||
|                 else | ||||
|   | ||||
| @@ -133,7 +133,7 @@ public class FileCacheManager : IDisposable | ||||
|  | ||||
|     public FileCacheEntity? CreateCacheEntry(string path) | ||||
|     { | ||||
|         Logger.Debug("Creating cache entry for " + path); | ||||
|         Logger.Verbose("Creating cache entry for " + path); | ||||
|         FileInfo fi = new(path); | ||||
|         if (!fi.Exists) return null; | ||||
|         var fullName = fi.FullName.ToLowerInvariant(); | ||||
| @@ -144,7 +144,7 @@ public class FileCacheManager : IDisposable | ||||
|  | ||||
|     public FileCacheEntity? CreateFileEntry(string path) | ||||
|     { | ||||
|         Logger.Debug("Creating file entry for " + path); | ||||
|         Logger.Verbose("Creating file entry for " + path); | ||||
|         FileInfo fi = new(path); | ||||
|         if (!fi.Exists) return null; | ||||
|         var fullName = fi.FullName.ToLowerInvariant(); | ||||
|   | ||||
| @@ -283,7 +283,7 @@ public class PeriodicFileScanner : IDisposable | ||||
|             _fileDbManager.WriteOutFullCsv(); | ||||
|         } | ||||
|  | ||||
|         Logger.Debug("Scanner validated existing db files"); | ||||
|         Logger.Verbose("Scanner validated existing db files"); | ||||
|  | ||||
|         if (ct.IsCancellationRequested) return; | ||||
|  | ||||
| @@ -314,7 +314,7 @@ public class PeriodicFileScanner : IDisposable | ||||
|  | ||||
|         Task.WaitAll(dbTasks); | ||||
|  | ||||
|         Logger.Debug("Scanner added new files to db"); | ||||
|         Logger.Verbose("Scanner added new files to db"); | ||||
|  | ||||
|         Logger.Debug("Scan complete"); | ||||
|         TotalFiles = 0; | ||||
|   | ||||
| @@ -109,7 +109,7 @@ public class TransientResourceManager : IDisposable | ||||
|             SemiTransientResources.Any(r => r.Value.Any(f => string.Equals(f.GamePaths.First(), replacedGamePath , StringComparison.OrdinalIgnoreCase)  | ||||
|             && string.Equals(f.ResolvedPath, filePath, StringComparison.OrdinalIgnoreCase)))) | ||||
|         { | ||||
|             Logger.Debug("Not adding " + replacedGamePath + ":" + filePath); | ||||
|             Logger.Verbose("Not adding " + replacedGamePath + ":" + filePath); | ||||
|             Logger.Verbose("SemiTransientAny: " + SemiTransientResources.Any(r => r.Value.Any(f => string.Equals(f.GamePaths.First(), replacedGamePath, StringComparison.OrdinalIgnoreCase)  | ||||
|                 && string.Equals(f.ResolvedPath, filePath, StringComparison.OrdinalIgnoreCase))).ToString() + ", TransientAny: " + TransientResources[gameObject].Contains(replacedGamePath)); | ||||
|         } | ||||
|   | ||||
| @@ -159,7 +159,7 @@ public class CompactUi : Window, IDisposable | ||||
|     { | ||||
|         var buttonSize = UiShared.GetIconButtonSize(FontAwesomeIcon.Plus); | ||||
|         ImGui.SetNextItemWidth(UiShared.GetWindowContentRegionWidth() - ImGui.GetWindowContentRegionMin().X - buttonSize.X); | ||||
|         ImGui.InputTextWithHint("##otheruid", "Other players UID/GID", ref _pairToAdd, 10); | ||||
|         ImGui.InputTextWithHint("##otheruid", "Other players UID/Alias", ref _pairToAdd, 20); | ||||
|         ImGui.SameLine(ImGui.GetWindowContentRegionMin().X + UiShared.GetWindowContentRegionWidth() - buttonSize.X); | ||||
|         if (ImGuiComponents.IconButton(FontAwesomeIcon.Plus)) | ||||
|         { | ||||
|   | ||||
| @@ -355,6 +355,7 @@ public partial class ApiController : IDisposable | ||||
|  | ||||
|     private Task MareHubOnReconnecting(Exception? arg) | ||||
|     { | ||||
|         _connectionDto = null; | ||||
|         _healthCheckTokenSource?.Cancel(); | ||||
|         ServerState = ServerState.Disconnected; | ||||
|         Logger.Warn("Connection closed... Reconnecting"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Stanley Dimant
					Stanley Dimant