Skip to content

Instantly share code, notes, and snippets.

@sauthieg
Created October 17, 2014 09:27
Show Gist options
  • Save sauthieg/511c1818b1d84553f31a to your computer and use it in GitHub Desktop.
Save sauthieg/511c1818b1d84553f31a to your computer and use it in GitHub Desktop.
Prints the content of the session on System.out
import groovy.json.JsonOutput
println "SESSION BEFORE"
println JsonOutput.prettyPrint(JsonOutput.toJson(exchange.session))
next.handle(exchange)
println "SESSION AFTER"
println JsonOutput.prettyPrint(JsonOutput.toJson(exchange.session))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment