Skip to content

Commit

Permalink
Added setting for enabling logging of PII in Identity stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
i8beef committed Jul 25, 2018
1 parent c785e1a commit 81e000f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/HomeAutio.Mqtt.GoogleHome/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public static void Main(string[] args)
.ReadFrom.Configuration(config)
.CreateLogger();

// Turn on or off PII data from Microsoft Identity stuff
Microsoft.IdentityModel.Logging.IdentityModelEventSource.ShowPII = config.GetValue<bool>("logPII", false);

try
{
CreateWebHostBuilder(args).Build().Run();
Expand Down
1 change: 1 addition & 0 deletions src/HomeAutio.Mqtt.GoogleHome/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"deviceConfigFile": "config/googleDevices.json",
"logPII": false,
"mqtt": {
"brokerIp": "localhost",
"brokerPort": 1883,
Expand Down

0 comments on commit 81e000f

Please sign in to comment.