Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http module's log never clears #57

Open
monitz87 opened this issue Jan 18, 2016 · 1 comment
Open

Http module's log never clears #57

monitz87 opened this issue Jan 18, 2016 · 1 comment

Comments

@monitz87
Copy link
Contributor

Currently, the http module just pushes each new request into the log with no concern for it's size. Normally it wouldn't be a problem, but if you're performing large numbers of requests this becomes a memory issue. I recommend limiting the log size to the last N entries.

@RafaelVidaurre
Copy link
Owner

Makes sense, this should be configurable also:

Yakuza.config({
  maxHttpLogEntries: 4
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants