Open sunnamed434 opened 3 months ago
I splunked a bit and it has been this way since the original PR.
I think we should throw an exception here. I'm not that familiar with MySQL.
Is there any case we get to that point and everything is ok except for the database not existing? The DatabaseExists
code looks like it should work without exception. When does it throw an exception?
I think we should throw an exception here. I'm not that familiar with MySQL.
Yep, I do agree about that. 👍
Is there any case we get to that point and everything is ok except for the database not existing? The DatabaseExists code looks like it should work without exception. When does it throw an exception?
It throws an exception if it can't connect to the database
Is there an existing issue for this?
Library Version
6.0.1-beta.41
What happened?
The problem can be seen here, is LogInformation intended instead of using LogError(exception, ..) ? I guess it was not updated because dbup-mysql moved to Microsoft logging style, in my case it's problematic because: I can't handle this exception, I have to create own implementation of logger and check if
format
argument is aDatabase not found on server with connection string in settings
, instead I want to fail my app by handling this exception (for example re-throwing the exception) and outputting more information about what happened.Relevant log output