Skip to content

Commit

Permalink
Log error details when failed to create database
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vansha committed Dec 10, 2015
1 parent 080190f commit 6ec0962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion product/roundhouse/databases/DefaultDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public virtual bool create_database_if_it_doesnt_exist(string custom_create_data
{
Log.bound_to(this).log_a_warning_event_containing(
"{0} with provider {1} does not provide a facility for creating a database at this time.{2}{3}",
GetType(), provider, Environment.NewLine, ex.Message);
GetType(), provider, Environment.NewLine, ex.to_string());
}

return database_was_created;
Expand Down

0 comments on commit 6ec0962

Please sign in to comment.