rails-sqlserver / tiny_tds

TinyTDS - Simple and fast FreeTDS bindings for Ruby using DB-Library.
Other
606 stars 189 forks source link

Unable to change debug flags in freetds.conf #535

Open KarimElsayad247 opened 1 year ago

KarimElsayad247 commented 1 year ago

Before submitting an issue please check these first!

Environment

Operating System

No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:    10
Codename:   buster
Linux example_app 5.19.0-41-generic #42~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 18 17:40:00 UTC 2 x86_64 GNU/Linux

TinyTDS Version and Information

Compile-time settings (established with the "configure" script)
                            Version: freetds v1.1.24
             freetds.conf directory: /usr/local/etc
     MS db-lib source compatibility: no
        Sybase binary compatibility: no
                      Thread safety: yes
                      iconv library: yes
                        TDS version: 7.3
                              iODBC: no
                           unixodbc: no
              SSPI "trusted" logins: no
                           Kerberos: no
                            OpenSSL: yes
                             GnuTLS: no
                               MARS: yes

FreeTDS Version

freetds v1.1.24

Description

So I was trying to debug a particular issue, and for that I wanted to reduce the noise in freetds.log, and it didn't seem like my changes were picked up.

setting debug flags = 0x80 in /usr/local/etc/freetds.conf doesn't do anything, same with dump file

After some digging I found that TinyTDS simpley ignores freetds.conf, and changing anything there has no effect.

My question then becomes: how do I configure log level for freetds when I'm using tinytds?