Open Nidhognit opened 8 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 89.28%. Comparing base (
f4889ff
) to head (69ddd71
).
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hey @Nidhognit ,
have you checked output after enabling debug mode? This will give you fully formed queries in error messages, which includes the values set in the prepared statement.
You can enable debug mode through the service container:
Propel::getServiceContainer()->useDebugMode()
or per connection:
Propel::getServiceContainer()->getWriteConnection('default')->useDebug();
The idea behind using debug mode is that Propel should not set parameters in error messages from a production database, as it might expose sensitive data to log files (see discussion in #1727).
Please check if debug output solves your issue.
@mringler yes, maybe all parameters are a bit risky, and definitely there should be some configurations on what to log and what is not. But why I have to enable debug mode on production just to see a real error? why real error is not a part of the log, what benefit of this hiding?
Problem statement
With more informative logs development and bugfixing will be much more easy.