Increased Orbital Period precision + fixes various NullRefs.
[VesselSimulator.git] / KerbalEngineer / Logger.cs
blob:a/KerbalEngineer/Logger.cs -> blob:b/KerbalEngineer/Logger.cs
--- a/KerbalEngineer/Logger.cs
+++ b/KerbalEngineer/Logger.cs
@@ -112,6 +112,16 @@
             }

         }

 

+        public static void Exception(Exception ex, string location)

+        {

+            lock (messages)

+            {

+                messages.Add("[Exception " + DateTime.Now.TimeOfDay + "]: " + location + " // " + ex.Message);

+                messages.Add(ex.StackTrace);

+                messages.Add(string.Empty);

+            }

+        }

+

         #endregion

 

         #region Flushing