Skip to content

Commit

Permalink
Log executed sql as information
Browse files Browse the repository at this point in the history
  • Loading branch information
FirestarJes committed Sep 18, 2024
1 parent e1f4c2e commit 9f1d3fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private string PrepareSqlStatement(DatabricksSqlQueryable query, Func<string, st
sqlParameters = sqlParams;
var translated = TranslateTransactToAnsi(sqlStatement);
var logString = $"Translated SQL: {translated}" + Environment.NewLine + string.Join(Environment.NewLine, sqlParams.Select(x => $"Parameter Name: {x.Key} | Value: {x.Value}"));
_logger.LogError(logString);
_logger.LogInformation(logString);
return translated;
}

Expand Down

0 comments on commit 9f1d3fd

Please sign in to comment.