Query parameters in error log
1010
Views
6
Comments
On our RadarOn our Radar
Aggregates & Queries

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

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? 

Excelente ideia. Facilita muito a identificação de possíveis problemas envolvendo parâmetros.