feat: add recovery center and daily reviews
This commit is contained in:
@@ -649,6 +649,7 @@ public sealed partial class FfmpegService
|
||||
var logService = scope.ServiceProvider.GetRequiredService<ISystemLogService>();
|
||||
var settingsService = scope.ServiceProvider.GetRequiredService<ISystemSettingsService>();
|
||||
var emailNotificationService = scope.ServiceProvider.GetRequiredService<IEmailNotificationService>();
|
||||
var webhookNotificationService = scope.ServiceProvider.GetRequiredService<IWebhookNotificationService>();
|
||||
var settings = await settingsService.GetAsync();
|
||||
|
||||
var session = await dbContext.RecordSessions
|
||||
@@ -783,6 +784,12 @@ public sealed partial class FfmpegService
|
||||
$"exitCode={process.ExitCode}; output={effectiveOutputPath}",
|
||||
session.LiveRoom,
|
||||
currentTask);
|
||||
await webhookNotificationService.SendExceptionAsync(
|
||||
"FFmpeg",
|
||||
"Recording session exited abnormally.",
|
||||
$"exitCode={process.ExitCode}; output={effectiveOutputPath}",
|
||||
session.LiveRoom,
|
||||
currentTask);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user