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

added error handling when opening session. #264

Merged
merged 1 commit into from
Apr 25, 2019

Conversation

vershnik
Copy link

session start fails if storage adapter host is not accessible (set $session_storage memcache/redis;)

improved message in logs will be as following:
2019/04/23 08:00:06 [error] 21#21: *1 [lua] openidc.lua:1344: authenticate(): Error starting session: memcache.local could not be resolved (3: Host not found)

instead of current unclear message: attempt to index local 'session' (a nil value)

session start fails if storage adapter host is not accessible (set $session_storage memcache/redis;)

improved message in logs will be as following:
2019/04/23 08:00:06 [error] 21#21: *1 [lua] openidc.lua:1344: authenticate(): Error starting session: memcache.local could not be resolved (3: Host not found)

instead of current unclear message: attempt to index local 'session' (a nil value)
@zandbelt
Copy link
Contributor

looks pretty useful to me, @bodewig whaddayathink?

@bodewig
Copy link
Collaborator

bodewig commented Apr 23, 2019

yes, absolutely. @vershnik you may want to add yourself to the AUTHORS file.

@vershnik
Copy link
Author

@bodewig I will do that in my next pull request

@bodewig bodewig merged commit 08ff5ab into zmartzone:master Apr 25, 2019
bodewig added a commit that referenced this pull request Apr 25, 2019
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

Successfully merging this pull request may close these issues.

4 participants