suppress logs in media contex
This commit is contained in:
parent
8310cf723d
commit
9b10f25394
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@ using MediatR;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace Femto.Modules.Media.Application;
|
namespace Femto.Modules.Media.Application;
|
||||||
|
|
||||||
|
@ -20,6 +21,8 @@ public static class MediaStartup
|
||||||
{
|
{
|
||||||
builder.UseNpgsql(connectionString);
|
builder.UseNpgsql(connectionString);
|
||||||
builder.UseSnakeCaseNamingConvention();
|
builder.UseSnakeCaseNamingConvention();
|
||||||
|
var loggerFactory = LoggerFactory.Create(b => { });
|
||||||
|
builder.UseLoggerFactory(loggerFactory);
|
||||||
});
|
});
|
||||||
services.AddTransient<IStorageProvider>(s => new FilesystemStorageProvider(storageRoot));
|
services.AddTransient<IStorageProvider>(s => new FilesystemStorageProvider(storageRoot));
|
||||||
services.AddMediatR(c => c.RegisterServicesFromAssembly(typeof(MediaStartup).Assembly));
|
services.AddMediatR(c => c.RegisterServicesFromAssembly(typeof(MediaStartup).Assembly));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue