-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add minimal sentry logging on mysql errors that were previously dropped
- Loading branch information
Showing
3 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using Microsoft.Extensions.Logging; | ||
|
||
namespace osu.Server.Spectator.Database | ||
{ | ||
public class DatabaseFactory : IDatabaseFactory | ||
{ | ||
public IDatabaseAccess GetInstance() => new DatabaseAccess(); | ||
private readonly ILoggerFactory loggerFactory; | ||
|
||
public DatabaseFactory(ILoggerFactory loggerFactory) | ||
{ | ||
this.loggerFactory = loggerFactory; | ||
} | ||
|
||
public IDatabaseAccess GetInstance() => new DatabaseAccess(loggerFactory); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters