소스 검색

Added logging to identify broken GPS Engine Location Queue

frogsoftware 1 년 전
부모
커밋
b53a66ddcd
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      prs.server/Engines/GPS/GPSEngine.cs

+ 2 - 1
prs.server/Engines/GPS/GPSEngine.cs

@@ -109,8 +109,9 @@ public class GPSUpdateQueue
                 using var fileStream = new FileStream(filename, FileMode.Open, FileAccess.Read);
                 deviceUpdate = Serialization.ReadBinary<GPSDeviceUpdate>(fileStream, BinarySerializationSettings.Latest);
             }
-            catch
+            catch (Exception e)
             {
+                Logger.Send(LogType.Error, "", string.Format("Unable to retrieve file: {0}", filename));
                 // File is probably in use.
             }
             if(deviceUpdate is not null)