Ver Fonte

fart smella

Tigran há 3 anos atrás
pai
commit
3868d6a909
2 ficheiros alterados com 3 adições e 2 exclusões
  1. 2 1
      CardCollector/Logs.cs
  2. 1 1
      CardCollector/Resources/Constants.cs

+ 2 - 1
CardCollector/Logs.cs

@@ -11,8 +11,9 @@ namespace CardCollector
     {
         private static void Print(string message)
         {
+            var today = DateTime.Today;
             if (Constants.DEBUG) Console.WriteLine(message);
-            else File.AppendAllText($"Log {DateTime.Now.Date}.txt", message + Environment.NewLine);
+            else File.AppendAllText($"Log {today.Day}-{today.Month}-{today.Year}.txt", message + Environment.NewLine);
         }
         
         public static void LogOut(object message)

+ 1 - 1
CardCollector/Resources/Constants.cs

@@ -7,7 +7,7 @@ namespace CardCollector.Resources
     public static class Constants
     {
         /* Переключить данный флаг при сборке на сервер */
-        public const bool DEBUG = true;
+        public const bool DEBUG = false;
 
         /* Интервал сохранения изменений */
         public const double SAVING_CHANGES_INTERVAL = DEBUG ? 10 * 1000 : 5 * 60 * 1000;