Skip to content

Commit

Permalink
Removing filtering of SQL Command text for non-stored procs when send…
Browse files Browse the repository at this point in the history
…ing the BeginExecute event. (dotnet#242)
  • Loading branch information
stebet authored and cheenamalhotra committed Oct 4, 2019
1 parent 807babc commit b5d8360
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7464,8 +7464,7 @@ private void WriteBeginExecuteEvent()
{
if (SqlEventSource.Log.IsEnabled() && Connection != null)
{
string commandText = CommandType == CommandType.StoredProcedure ? CommandText : string.Empty;
SqlEventSource.Log.BeginExecute(GetHashCode(), Connection.DataSource, Connection.Database, commandText);
SqlEventSource.Log.BeginExecute(GetHashCode(), Connection.DataSource, Connection.Database, CommandText);
}
}

Expand Down

0 comments on commit b5d8360

Please sign in to comment.