add sqlite logging

This commit is contained in:
Luke Pulverenti
2016-11-20 16:02:32 -05:00
parent 6da99d9d04
commit 94e622e3a0
4 changed files with 12 additions and 59 deletions

View File

@@ -33,8 +33,17 @@ namespace Emby.Server.Implementations.Data
//CheckOk(rc);
}
private static bool _versionLogged;
protected virtual SQLiteDatabaseConnection CreateConnection(bool isReadOnly = false)
{
if (!_versionLogged)
{
_versionLogged = true;
Logger.Info("Sqlite version: " + SQLite3.Version);
Logger.Info("Sqlite compiler options: " + string.Join(",", SQLite3.CompilerOptions.ToArray()));
}
ConnectionFlags connectionFlags;
//isReadOnly = false;