Skip to content

Commit

Permalink
Merge pull request #3314 from mnaiman/log_sql_variables
Browse files Browse the repository at this point in the history
Log sql variables
  • Loading branch information
kenkendk committed Aug 7, 2018
2 parents 5a3adc3 + 99bb089 commit 64201ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Duplicati/Library/Main/Database/ExtensionMethods.cs
Expand Up @@ -41,7 +41,7 @@ public static void SetParameterValue<T>(this System.Data.IDbCommand self, int in
public static string GetPrintableCommandText(this System.Data.IDbCommand self)
{
var txt = self.CommandText;
#if DEBUG

foreach(var p in self.Parameters.Cast<System.Data.IDbDataParameter>())
{
var ix = txt.IndexOf('?');
Expand All @@ -58,7 +58,7 @@ public static string GetPrintableCommandText(this System.Data.IDbCommand self)
txt = txt.Substring(0, ix) + v + txt.Substring(ix + 1);
}
}
#endif

return txt;
}

Expand Down

0 comments on commit 64201ae

Please sign in to comment.