@@ -32,7 +32,7 @@ internal abstract class StorageClientProvider<TClient, TClientOptions> where TCl
3232 /// <param name="configuration">The configuration to use when creating Client-specific objects. <see cref="IConfiguration"/></param>
3333 /// <param name="componentFactory">The Azure factory responsible for creating clients. <see cref="AzureComponentFactory"/></param>
3434 /// <param name="logForwarder">Log forwarder that forwards events to ILogger. <see cref="AzureEventSourceLogForwarder"/></param>
35- public StorageClientProvider ( IConfiguration configuration , AzureComponentFactory componentFactory , AzureEventSourceLogForwarder logForwarder , ILogger < TClient > logger )
35+ public StorageClientProvider ( IConfiguration configuration , AzureComponentFactory componentFactory , AzureEventSourceLogForwarder logForwarder , ILogger < StorageClientProvider < TClient , TClientOptions > > logger )
3636 {
3737 _configuration = configuration ;
3838 _componentFactory = componentFactory ;
@@ -65,7 +65,7 @@ public virtual bool TryGet(string name, out TClient client)
6565 catch ( Exception ex )
6666 {
6767 client = default ( TClient ) ;
68- _logger . LogError ( ex , "Could not create Storage Client" ) ;
68+ _logger . LogDebug ( "Could not create Storage Client. Exception: {0}" , ex . ToString ( ) ) ;
6969 return false ;
7070 }
7171 }
@@ -86,7 +86,7 @@ public virtual bool TryGetFromConnectionString(string connectionString, out TCli
8686 catch ( Exception ex )
8787 {
8888 client = default ( TClient ) ;
89- _logger . LogError ( ex , "Could not create Storage Client from a connection string." ) ;
89+ _logger . LogDebug ( "Could not create Storage Client from a connection string. Exception: {0}" , ex . ToString ( ) ) ;
9090 return false ;
9191 }
9292 }
@@ -190,7 +190,7 @@ protected virtual bool TryGetServiceUri(IConfiguration configuration, out Uri se
190190 }
191191 catch ( Exception ex )
192192 {
193- _logger . LogError ( ex , "Could not parse serviceUri from the configuration." ) ;
193+ _logger . LogDebug ( "Could not parse serviceUri from the configuration. Exception: {0}" , ex . ToString ( ) ) ;
194194 }
195195
196196 serviceUri = default ( Uri ) ;
0 commit comments