[sr-dev] Re: [kamailio/kamailio] sqlops: Don't truncated sql command when logging. (PR #3903)

2024-07-04 Thread Xenofon Karamanos via sr-dev
Hmm, ok. Seems fair but it's not documented anywhere and it can lead to misunderstanding that the query itself is truncated and producing the error. Maybe the modparam limit is the best way to go but is it worth it to be introduced just for this logging? -- Reply to this email directly or

[sr-dev] Re: [kamailio/kamailio] sqlops: Don't truncated sql command when logging. (PR #3903)

2024-07-04 Thread Daniel-Constantin Mierla via sr-dev
It is not a bug, it was done on purpose to limit the size of logging message, because there can be rather long queries some time and can fill the logs or slow down. If you find 64 too short, you can eventually double it. Alternative you can add a modparam to set the max length to be printed.