Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

* Add logging for other IAntiforgery public methods #54

Merged
merged 1 commit into from
Feb 17, 2016

Conversation

ryanbrandenburg
Copy link
Contributor

Fixes #44
cc @dougbu and @rynowak

{
_logger.ReusedCookieToken();
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this addition.

Would potentially logging multiple times per request. Should instead restore the block where SaveCookieTokenAndHeader() is called in GetAndStoreTokens(). Then duplicate that logic in SetCookieTokenAndHeader(). That way, logging can reliably be done once -- when HaveStoredNewCookieToken is false.

Note as well that this method is called in cases (GetTokens()) where the cookie isn't stored at all.

@dougbu
Copy link
Member

dougbu commented Feb 13, 2016

@ryanbrandenburg
Copy link
Contributor Author

🆙 📅 @dougbu I believe that's what you meant?

@dougbu
Copy link
Member

dougbu commented Feb 17, 2016

@ryanbrandenburg yup, this is what I meant.

@dougbu
Copy link
Member

dougbu commented Feb 17, 2016

:shipit:

@ryanbrandenburg ryanbrandenburg merged commit a8dbf6a into dev Feb 17, 2016
@ryanbrandenburg ryanbrandenburg deleted the rybrande/AddLogging branch March 8, 2016 00:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants