-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verbose deploy/revert/verity #155
Comments
I could see |
I'm not sure how it would work for the Oracle engine, which is what we use. For sqlplus, |
Probably would just add those commands to the |
My untrained research has also turned up the ora_verbose value in the driver which may be useful. Thanks for adding this to the TODO list. |
@theory Would love to have this feature, especially for debugging stuff like GitLab Runners. Is there any hacky way to turn on |
You can pass You can enable quite verbose tracing with the DBI, however. Just set the |
@theory Hm. Coming back to this ticket after my AWS RDS + PostgreSQL + sqitch debugging session. This
But this DBI_TRACE is a life-saver, and it let me debug the RDS + IAM authentication. It'd be awesome if we documented it somewhere for us, non-Perl crowd. What I'm thinking: should we document
? I think it's a huge time saver if I could tell folks to just pass |
Yeah, it might make sense to have --- a/lib/App/Sqitch/Role/DBIEngine.pm
+++ b/lib/App/Sqitch/Role/DBIEngine.pm
@@ -22,6 +22,11 @@ requires '_char2ts';
requires '_listagg_format';
requires '_no_table_error';
requires '_handle_lookup_index';
+requires 'use_driver';
+
+after use_driver => sub {
+ DBI->trace(1) if $_[0]->sqitch->verbosity > 2;
+};
sub _dt($) {
require App::Sqitch::DateTime; |
@theory This looks great. We should add this. |
I would like the -v and --verbose options to work with the deploy, revert, and verify commands by showing the output from the database in response from the query. For example:
The text was updated successfully, but these errors were encountered: