From c08a3246525d520388358b1d176035dc52a57f47 Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Mon, 2 Dec 2024 14:00:28 +0100 Subject: [PATCH] Getrennte log files --- DakotaSender/Config.cs | 2 +- DakotaSender/Program.cs | 10 ++++++---- .../Invoices/GkvBegleitzettel.Designer.cs | 1 - 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/DakotaSender/Config.cs b/DakotaSender/Config.cs index 9fd6fa3a3..d7c67a22f 100644 --- a/DakotaSender/Config.cs +++ b/DakotaSender/Config.cs @@ -44,7 +44,7 @@ namespace DakotaSender = int.Parse(ConfigurationManager.AppSettings.Get("ProcessWaitForExitMs") ?? "10000"); public static string LogPath { get; } - = ConfigurationManager.AppSettings.Get("LogPath") ?? @"C:\GkvAbrechnung\Sender\log.txt"; + = ConfigurationManager.AppSettings.Get("LogPath") ?? @"C:\GkvAbrechnung\Sender\logs"; public static string GkvSecretKey { get; set; } = ConfigurationManager.AppSettings.Get("GkvSecretKey"); diff --git a/DakotaSender/Program.cs b/DakotaSender/Program.cs index aa5145eb1..be56a92b2 100644 --- a/DakotaSender/Program.cs +++ b/DakotaSender/Program.cs @@ -28,7 +28,9 @@ namespace DakotaSender static void Main(string[] args) { - FileStream filestream = new FileStream(Config.LogPath, FileMode.Append); + var log4day = Path.Combine(Config.LogPath, $"log_{DateTime.Today:yyyyMMdd}.txt"); + + FileStream filestream = new FileStream(log4day, FileMode.Append); var streamwriter = new StreamWriter(filestream); streamwriter.AutoFlush = true; @@ -370,12 +372,12 @@ namespace DakotaSender static void HandleResults() { - PrintLine("Sende Ergebnisse:"); - PrintSeperator(); - if (ten2user2req is null || !ten2user2req.Any()) return; + PrintLine("Sende Ergebnisse:"); + PrintSeperator(); + var task = HandleResultsAsync(); task.Wait(); diff --git a/Report/DefaultReports/Invoices/GkvBegleitzettel.Designer.cs b/Report/DefaultReports/Invoices/GkvBegleitzettel.Designer.cs index e7771b222..e1498c5c7 100644 --- a/Report/DefaultReports/Invoices/GkvBegleitzettel.Designer.cs +++ b/Report/DefaultReports/Invoices/GkvBegleitzettel.Designer.cs @@ -1096,7 +1096,6 @@ namespace BeWo.Report.DefaultReports.Invoices this.xrPictureBox1.Name = "xrPictureBox1"; this.xrPictureBox1.SizeF = new System.Drawing.SizeF(218.8299F, 93.25983F); this.xrPictureBox1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage; - this.xrPictureBox1.SizeChanged += new DevExpress.XtraReports.UI.ChangeEventHandler(this.xrPictureBox1_SizeChanged); // // ReportHeader //