traceplugin.cpp (Firebird-3.0.2.32703-0.tar.bz2) | : | traceplugin.cpp (Firebird-3.0.4.33054-0.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 87 | skipping to change at line 87 | |||
Firebird::ITraceDatabaseConnection* connection = initInfo->getCon nection(); | Firebird::ITraceDatabaseConnection* connection = initInfo->getCon nection(); | |||
if (!config.enabled || | if (!config.enabled || | |||
(config.connection_id && connection && | (config.connection_id && connection && | |||
(connection->getConnectionID() != config.connecti on_id))) | (connection->getConnectionID() != config.connecti on_id))) | |||
{ | { | |||
return NULL; // Plugin is not needed, no error happened. | return NULL; // Plugin is not needed, no error happened. | |||
} | } | |||
Firebird::AutoPtr<Firebird::ITraceLogWriter, Firebird::SimpleRele | Firebird::AutoPtr<Firebird::ITraceLogWriter, Firebird::SimpleRele | |||
ase<Firebird::ITraceLogWriter> > | ase> logWriter(initInfo->getLogWriter()); | |||
logWriter(initInfo->getLogWriter()); | ||||
if (logWriter) | if (logWriter) | |||
config.log_filename = ""; | config.log_filename = ""; | |||
return FB_NEW TracePluginImpl(this, config, initInfo); // Everyt hing is ok, we created a plugin | return FB_NEW TracePluginImpl(this, config, initInfo); // Everyt hing is ok, we created a plugin | |||
} | } | |||
catch (Firebird::Exception& ex) | catch (Firebird::Exception& ex) | |||
{ | { | |||
// put error into trace log | // put error into trace log | |||
End of changes. 1 change blocks. | ||||
3 lines changed or deleted | 2 lines changed or added |