Closed wryczko closed 9 months ago
Thanks for reporting this. Turns out the new format (both supported in FirebirdClient) of trace config now requires only double quotes, while previously single and double quotes were accepted. Here's #1149 the issue tracking the root cause. I'll close this now.
Steps to reproduce:
Given:
Firebird 3.0 database setup:
.NET 6.0 Console App setup:
dotnet new console -f net6.0
dotnet add package FirebirdSql.Data.FirebirdClient --version 9.1.1
trace.ConnectionString = "database=[DB_PATH];user=SYSDBA;password=[Password]"; trace.ServiceOutput += (object? sender, ServiceOutputEventArgs e) => { Console.WriteLine("Logged: " + e.Message); // called only once with message "Trace session ID 1 started" and never again }; trace.DatabasesConfigurations.Add( new FbDatabaseTraceConfiguration() { DatabaseName = string.Empty, Enabled = true, Events = FbDatabaseTraceEvents.StatementFinish, IncludeFilter = "%(INSERT|UPDATE|DELETE)%", TimeThreshold = TimeSpan.FromMilliseconds(0), });
trace.Start($"trace-{Guid.NewGuid()}");