debug mode in cowboy #187

oribrost opened this Issue Apr 8, 2012 · 3 comments


None yet
2 participants

oribrost commented Apr 8, 2012

It would be convinient to have the ability to enable a debug mode in cowboy such that cowboy calls a log fun for every HTTP event that it receives and for every HTTP message that it sends (possibly including websocket frames).



oribrost commented Apr 8, 2012

We implemented a version of this in nivertech/cowboy@9e087b8, see all diffs with the string is_debug_connection (reference to config_dynamic should probably be replaced something else though).


essen commented Apr 8, 2012

We already have an onrequest hook, and the onresponse hook is being done. You can use them to write your debug logs. I was also considering the same for websocket frames but I'm not sure this should be done at the Cowboy level for that one.


essen commented Apr 16, 2012

Closing this in favor of #19. Thanks!

@essen essen closed this Apr 16, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment