It's a bit dangerous to dump the full database config (which includes passwords) into the exception message, it ends up in log files and more importantly, things like exception-notification emails where it could be more readily intercepted. Logging just the missing key is enough, IMO.
It's a bit dangerous to dump the full database config (which includes passwords) into the exception message, it ends up in log files and more importantly, things like exception-notification emails where it could be more readily intercepted. Logging just the missing key is enough, IMO.