File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/WebJobs.Script.WebHost/Security/KeyManagement Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 5
5
using System . Collections . Generic ;
6
6
using System . IO ;
7
7
using System . Linq ;
8
+ using System . Text ;
8
9
using System . Threading . Tasks ;
9
10
using Microsoft . Extensions . Logging ;
10
11
@@ -104,16 +105,20 @@ private async Task<ScriptSecrets> ReadFunctionSecretsAsync(string functionName)
104
105
return functionSecrets ;
105
106
}
106
107
107
- private static async Task < IDictionary < string , string > > GetFromFilesAsync ( string path )
108
+ private async Task < IDictionary < string , string > > GetFromFilesAsync ( string path )
108
109
{
109
110
string [ ] files = await FileUtility . GetFilesAsync ( path , "*" ) ;
110
111
var secrets = new Dictionary < string , string > ( files . Length ) ;
111
112
113
+ StringBuilder sb = new StringBuilder ( "Loaded secrets from files:" ) ;
114
+
112
115
foreach ( var file in files )
113
116
{
114
117
secrets . Add ( Path . GetFileName ( file ) , await FileUtility . ReadAsync ( file ) ) ;
118
+ sb . AppendLine ( $ " { file } ") ;
115
119
}
116
120
121
+ _logger . LogDebug ( sb . ToString ( ) ) ;
117
122
return secrets ;
118
123
}
119
124
You can’t perform that action at this time.
0 commit comments