From 06635d1a689e3afdf9d23dfd7dd3b67e89f15cd5 Mon Sep 17 00:00:00 2001 From: James Friel Date: Thu, 10 Aug 2023 11:06:05 +0100 Subject: [PATCH] add log column burst check --- Rdmp.Core/Curation/Data/ExternalDatabaseServer.cs | 15 --------------- .../ToLoggingDatabaseDataLoadEventListener.cs | 7 +------ 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/Rdmp.Core/Curation/Data/ExternalDatabaseServer.cs b/Rdmp.Core/Curation/Data/ExternalDatabaseServer.cs index 3872385358..501f5b2e9b 100644 --- a/Rdmp.Core/Curation/Data/ExternalDatabaseServer.cs +++ b/Rdmp.Core/Curation/Data/ExternalDatabaseServer.cs @@ -35,8 +35,6 @@ public class ExternalDatabaseServer : DatabaseEntity, IExternalDatabaseServer, I private string _createdByAssembly; private string _mappedDataPath; private readonly SelfCertifyingDataAccessPoint _selfCertifyingDataAccessPoint; - private int _maxFreeFormStringLength; - private bool _shouldTruncateFreeFormStrings; /// /// Human readable name for the server e.g. 'My Favourite Logging Database' /// @@ -48,19 +46,6 @@ public string Name set => SetField(ref _name, value); } - - public int MaxFreeFormStringLength - { - get => _maxFreeFormStringLength; - set => SetField(ref _maxFreeFormStringLength, value); - } - - public bool ShouldtruncateFreeFormStrings - { - get => _shouldTruncateFreeFormStrings; - set => SetField(ref _shouldTruncateFreeFormStrings, value); - } - /// /// If the database was created by an RDMP schema (or plugin schema) this will contain the name of the dll which holds the schema e.g. DataQualityEngine.Database and was /// responsible for creating the database. This determines what roles RDMP lets the database play. diff --git a/Rdmp.Core/Logging/Listeners/ToLoggingDatabaseDataLoadEventListener.cs b/Rdmp.Core/Logging/Listeners/ToLoggingDatabaseDataLoadEventListener.cs index bd0a971bbe..a0318f12dc 100644 --- a/Rdmp.Core/Logging/Listeners/ToLoggingDatabaseDataLoadEventListener.cs +++ b/Rdmp.Core/Logging/Listeners/ToLoggingDatabaseDataLoadEventListener.cs @@ -67,13 +67,8 @@ public virtual void OnNotify(object sender, NotifyEventArgs e) if (DataLoadInfo == null){ StartLogging(); } - //todo have to find out the server we're logging to - // var loggingServer = catalogueRepository.GetDefaultFor(PermissableDefaults.LiveLoggingServer_ID); - - // ExternalDatabaseServer loggingServer = CatalogueRepository.Instance.GetDefaultFor(PermissableDefaults.LiveLoggingServer_ID); - int maxMessageLength = 0;//this should be configurable - //todo may want to log first x chars if ifs too big + int maxMessageLength = 64000/ sizeof(Char); //loggingDB text column has max 64kb size, or 65535 chars switch (e.ProgressEventType) {