cakephp / elastic-search

Elastic search datasource for CakePHP
Other
88 stars 53 forks source link

Fix elastic logger to avoid debug kit panel exception #294

Closed ajibarra closed 2 years ago

ajibarra commented 2 years ago

If an exception occurs, currently you only see an exception trying to log the query because of types mismatch. This makes impossible to dev to know what happens exactly.

Additionally numRows is an array when querying indexes and DebugLog class expects numRows to be an integer. It is because the plugin includes in the total the operator and the actual total.