7
 Followers
36
 Likes

Query parameters in error log

Aggregates & Queries
On our radar

Hi,


Would be great for troubleshooting if the runtime values used in query parameters were also logged in the error log text. The tenant Id would also be a good idea to support multi-tenant scenarios.

Of course this would only be applicable to query related errors and they could be shown in the log in a very simple manner like:

"

TenantId = 1

Param1 = 123

Param2 = "Text"


Error in advanced query (...)

"


This would allow much faster debug in Service Studio.


Cheers,

Hermínio

Created on 26 Sep 2017
Comments (5)

Good idea! 

Excellent idea. Currently you have to do additional logging for these values

Yes, would be really nice.

Agreed, this would make life so much easier.

Currently I added my own logging to display the executed SQL command.

What if the parameters contain confidential information like password or credit card numbers? How would you feel having that being dumped in log messages? Or would you like to have this on only in development environments? 

views
383
Followers
7