From cb62184ba26542348a01c224021b302714b665b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Negri=C8=9Boiu?= Date: Sat, 13 Feb 2016 21:50:44 -0800 Subject: [PATCH] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 02067b8..2105044 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ Alternatively you can host your app and the AlexaSkillsKit.NET library in any ot ### Override request validation policy -By default, requests with missing or invalid signatures, or with missing or too old timestamps, are rejected. You can override the request validation policy if you'd like not to reject the request in certain conditions and/or to log validation failures you can override the policy. +By default, requests with missing or invalid signatures, or with missing or too old timestamps, are rejected. You can override the request validation policy if you'd like not to reject the request in certain conditions and/or to log validation failures. ```csharp /// @@ -72,17 +72,17 @@ public override bool OnRequestValidation( { if (result.HasFlag(SpeechletRequestValidationResult.NoSignatureHeader)) { - Log.Error("Alexa request is missing signature header, rejecting."); + Debug.WriteLine("Alexa request is missing signature header, rejecting."); return false; } if (result.HasFlag(SpeechletRequestValidationResult.NoCertHeader)) { - Log.Error("Alexa request is missing certificate header, rejecting."); + Debug.WriteLine("Alexa request is missing certificate header, rejecting."); return false; } if (result.HasFlag(SpeechletRequestValidationResult.InvalidSignature)) { - Log.Error("Alexa request signature is invalid, rejecting."); + Debug.WriteLine("Alexa request signature is invalid, rejecting."); return false; } else @@ -90,7 +90,7 @@ public override bool OnRequestValidation( if (result.HasFlag(SpeechletRequestValidationResult.InvalidTimestamp)) { var diff = referenceTimeUtc - requestEnvelope.Request.Timestamp; - Log.Warn("Alexa request timestamped '{0:0.00}' seconds ago making timestamp invalid, but continue processing.", + Debug.WriteLine("Alexa request timestamped '{0:0.00}' seconds ago making timestamp invalid, but continue processing.", diff.TotalSeconds); } return true;