mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 16:42:50 -05:00
Added loggr logging for production environment.
This commit is contained in:
@ -10,6 +10,7 @@ namespace Bit.Core
|
||||
public virtual DocumentDBSettings DocumentDB { get; set; } = new DocumentDBSettings();
|
||||
public virtual SqlServerSettings SqlServer { get; set; } = new SqlServerSettings();
|
||||
public virtual MailSettings Mail { get; set; } = new MailSettings();
|
||||
public virtual LoggrSettings Loggr { get; set; } = new LoggrSettings();
|
||||
|
||||
public class DocumentDBSettings
|
||||
{
|
||||
@ -27,8 +28,14 @@ namespace Bit.Core
|
||||
|
||||
public class MailSettings
|
||||
{
|
||||
public string APIKey { get; set; }
|
||||
public string ApiKey { get; set; }
|
||||
public string ReplyToEmail { get; set; }
|
||||
}
|
||||
|
||||
public class LoggrSettings
|
||||
{
|
||||
public string LogKey { get; set; }
|
||||
public string ApiKey { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ namespace Bit.Core.Services
|
||||
public MailService(GlobalSettings globalSettings)
|
||||
{
|
||||
_globalSettings = globalSettings;
|
||||
_web = new Web(_globalSettings.Mail.APIKey);
|
||||
_web = new Web(_globalSettings.Mail.ApiKey);
|
||||
}
|
||||
|
||||
public async Task SendAlreadyRegisteredEmailAsync(string registrantEmailAddress)
|
||||
|
Reference in New Issue
Block a user