Don't log sqlite errors as errors to avoid logging to the database

pull/6/head
Mark McDowall 11 years ago
parent 9dcd58a631
commit 2ad2859618

@ -32,7 +32,7 @@ namespace NzbDrone.Host.Owin
public override void Write(string value) public override void Write(string value)
{ {
if (value.ToLower().Contains("error")) if (value.ToLower().Contains("error") && !value.ToLower().Contains("sqlite"))
{ {
_logger.Error(value); _logger.Error(value);
} }

Loading…
Cancel
Save