Skip to content
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

Additional D and I behaviors for errorOverrides to turn specific errors and warnings into debug or info messages #2212

Closed
axelfontaine opened this issue Nov 23, 2018 · 2 comments

Comments

@axelfontaine
Copy link
Contributor

@axelfontaine axelfontaine commented Nov 23, 2018

This adds the following new behaviors for errorOverrides:

  • D to force a debug message
  • D- to force a debug message, but do not show the original sql state and error code
  • I to force an info message
  • I- to force an info message, but do not show the original sql state and error code
  • W- to force a warning, but do not show the original sql state and error code
  • E- to force an error, but do not show the original sql state and error code

Usage example: SQL Server PRINT messages should not be shown as warnings

PRINT 'Starting ...';
PRINT 'Done.';

currently results in the following output:

WARNING: DB: Starting ... (SQL State: S0001 - Error Code: 0)
WARNING: DB: Done. (SQL State: S0001 - Error Code: 0)

but with errorOverrides=S0001:0:I- it becomes

Starting ...
Done.
@seb-urbaniak
Copy link

@seb-urbaniak seb-urbaniak commented Nov 23, 2018

Thank you Axel.

@axelfontaine axelfontaine changed the title SQL Server PRINT messages should not be shown as warnings Additional D and I behaviors for errorOverrides to turn specific errors and warnings into debug or info messages Nov 24, 2018
axelfontaine added a commit that referenced this issue Nov 24, 2018
…specific errors and warnings into debug or info messages
axelfontaine added a commit to flyway/flywaydb.org that referenced this issue Nov 24, 2018
@axelfontaine
Copy link
Contributor Author

@axelfontaine axelfontaine commented Nov 24, 2018

This has now been implemented and will be released in the next few days as part of 5.2.2.

dohrayme pushed a commit to dohrayme/flyway that referenced this issue Feb 3, 2020
… turn specific errors and warnings into debug or info messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.