Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2018-05-15 12:29:08 +0300
committerKenneth Skovhede <kenneth@hexad.dk>2018-05-15 12:29:08 +0300
commitee64517f7d5809135c8567b7f64adba44741d0f5 (patch)
tree5ba8fc0253af2916baf7f3fe4ec65b372bee8f41 /Duplicati/Library/SQLiteHelper
parent7be6237342a77d1f04a37fef999861fd895d8512 (diff)
Removed calls to `Console.WriteLine` as we may run somewhere without a console.
Diffstat (limited to 'Duplicati/Library/SQLiteHelper')
-rw-r--r--Duplicati/Library/SQLiteHelper/Duplicati.Library.SQLiteHelper.csproj4
-rw-r--r--Duplicati/Library/SQLiteHelper/SQLiteLoader.cs7
2 files changed, 10 insertions, 1 deletions
diff --git a/Duplicati/Library/SQLiteHelper/Duplicati.Library.SQLiteHelper.csproj b/Duplicati/Library/SQLiteHelper/Duplicati.Library.SQLiteHelper.csproj
index f6f01f7d9..6541ab122 100644
--- a/Duplicati/Library/SQLiteHelper/Duplicati.Library.SQLiteHelper.csproj
+++ b/Duplicati/Library/SQLiteHelper/Duplicati.Library.SQLiteHelper.csproj
@@ -81,5 +81,9 @@
<Project>{C5899F45-B0FF-483C-9D38-24A9FCAAB237}</Project>
<Name>Duplicati.Library.Interface</Name>
</ProjectReference>
+ <ProjectReference Include="..\Logging\Duplicati.Library.Logging.csproj">
+ <Project>{D10A5FC0-11B4-4E70-86AA-8AEA52BD9798}</Project>
+ <Name>Duplicati.Library.Logging</Name>
+ </ProjectReference>
</ItemGroup>
</Project> \ No newline at end of file
diff --git a/Duplicati/Library/SQLiteHelper/SQLiteLoader.cs b/Duplicati/Library/SQLiteHelper/SQLiteLoader.cs
index 4830277d7..437cf7409 100644
--- a/Duplicati/Library/SQLiteHelper/SQLiteLoader.cs
+++ b/Duplicati/Library/SQLiteHelper/SQLiteLoader.cs
@@ -25,6 +25,11 @@ namespace Duplicati.Library.SQLiteHelper
{
public static class SQLiteLoader
{
+ /// <summary>
+ /// The tag used for logging
+ /// </summary>
+ private static readonly string LOGTAG = Logging.Log.LogTagFromType(typeof(SQLiteLoader));
+
/// <summary>
/// A cached copy of the type
/// </summary>
@@ -155,7 +160,7 @@ namespace Duplicati.Library.SQLiteHelper
}
}
- Console.WriteLine("Failed to load Mono.Data.Sqlite.SqliteConnection, reverting to built-in.");
+ Logging.Log.WriteVerboseMessage(LOGTAG, "FailedToLoadSQLite", "Failed to load Mono.Data.Sqlite.SqliteConnection, reverting to built-in.");
}
}