Skip to content

Commit 6ec0962

Browse files
committed
Log error details when failed to create database
This is to simplify troubleshooting when getting mysterious exceptions from Azure like "CreateDatabaseAsyncV3 operation failed. Operation timed out." Having exception type and stacktrace would be helpful.
1 parent 080190f commit 6ec0962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

product/roundhouse/databases/DefaultDatabase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public virtual bool create_database_if_it_doesnt_exist(string custom_create_data
125125
{
126126
Log.bound_to(this).log_a_warning_event_containing(
127127
"{0} with provider {1} does not provide a facility for creating a database at this time.{2}{3}",
128-
GetType(), provider, Environment.NewLine, ex.Message);
128+
GetType(), provider, Environment.NewLine, ex.to_string());
129129
}
130130

131131
return database_was_created;

0 commit comments

Comments
 (0)