You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe, to keep current logging for users that want it, have a boolean field DoNotLogEvents to the InMemStoreOptions struct and a private doNotLog to the inMemStore.
Those one could be set as needed when invoking: NewInMemStoreOptions
The log statements would be wrapped inside an if !s.doNotLog { log... }
Obviously, no pressure, I would be glad to send a pull request
Regards,
Silviu
The text was updated successfully, but these errors were encountered:
Hi @icza
Great package: clean, to the point, does what it advertises to be doing.
Quick question: only to avoid forking my own thing, would you consider making the log.Println operations optional for the in-memory store ?
https://github.com/icza/session/blob/master/inmem_store.go#L101
https://github.com/icza/session/blob/master/inmem_store.go#L129
https://github.com/icza/session/blob/master/inmem_store.go#L138
Maybe, to keep current logging for users that want it, have a boolean field DoNotLogEvents to the InMemStoreOptions struct and a private doNotLog to the inMemStore.
Those one could be set as needed when invoking: NewInMemStoreOptions
The log statements would be wrapped inside an if !s.doNotLog { log... }
Obviously, no pressure, I would be glad to send a pull request
Regards,
Silviu
The text was updated successfully, but these errors were encountered: