OSDN Git Service

1st attempt to fix Protocol buffer corruption issue
[automap/automap.git] / Automap / Subsystems / Snapshot.cs
index 507bbec..c997333 100644 (file)
@@ -45,7 +45,7 @@ namespace Automap
                        var t = new Stopwatch();
                        t.Start();
 
-                       Console.WriteLine("snapshot started");
+                       Debug.WriteLine("snapshot started");
 
                        ImageInfo info = new ImageInfo(Width * chunkSize, Height * chunkSize, 8, false);
                        PngWriter snapWriter = FileHelper.CreatePngWriter(fileName, info, true);
@@ -114,9 +114,9 @@ namespace Automap
                        }
                        catch (Exception)
                        {
-                               Console.WriteLine("Snapshot exception!");
+                               Debug.WriteLine("Snapshot exception!");
                        }
-                       Console.WriteLine($"snapshot finished in {t.ElapsedMilliseconds}");
+                       Debug.WriteLine($"snapshot finished in {t.ElapsedMilliseconds}");
                }
 
                private async Task<Dictionary<int, byte[][]>> ReadAllInGroup(IGrouping<int, ColumnMeta> group)
@@ -138,7 +138,7 @@ namespace Automap
                        }
                        catch (Exception e)
                        {
-                               Console.WriteLine(e.Message);
+                               Debug.WriteLine(e.Message);
                                return null;
                        } // do nothing on error
                }