mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
chore: log multiple errors (#14064)
* log all errors from db create
* return unique set of errors
* sort set for exceptions list
* run black
(cherry picked from commit c143b37128)
This commit is contained in:
committed by
Ville Brofeldt
parent
e97b123961
commit
253f80ab6d
@@ -92,6 +92,9 @@ class CreateDatabaseCommand(BaseCommand):
|
||||
exception = DatabaseInvalidError()
|
||||
exception.add_list(exceptions)
|
||||
event_logger.log_with_context(
|
||||
action=f"db_connection_failed.{exception.__class__.__name__}"
|
||||
action="db_connection_failed.{}.{}".format(
|
||||
exception.__class__.__name__,
|
||||
".".join(exception.get_list_classnames()),
|
||||
)
|
||||
)
|
||||
raise exception
|
||||
|
||||
Reference in New Issue
Block a user