Logmessages for creation of library and notification Connector

This commit is contained in:
glax 2023-09-20 13:28:09 +02:00
parent 482fcb7102
commit 660f6a1648
2 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,7 @@ public abstract class LibraryConnector : GlobalBase
protected LibraryConnector(GlobalBase clone, string baseUrl, string auth, LibraryType libraryType) : base(clone)
{
Log($"Creating libraryConnector {Enum.GetName(libraryType)}");
Regex urlRex = new(@"https?:\/\/[0-9A-z\.]*");
if (!urlRex.IsMatch(baseUrl))
throw new ArgumentException("Base url does not match pattern");

View File

@ -6,6 +6,7 @@ public abstract class NotificationConnector : GlobalBase
protected NotificationConnector(GlobalBase clone, NotificationConnectorType notificationConnectorType) : base(clone)
{
Log($"Creating notificationConnector {Enum.GetName(notificationConnectorType)}");
this.notificationConnectorType = notificationConnectorType;
}