Guest User

Untitled

a guest
Aug 10th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. class SyspanelSqlLogger
  2. def initialize(app)
  3. @app = app
  4. end
  5.  
  6. def call(env)
  7. Thread.current["syspanel.sql.logger.enabled"] = (env['REQUEST_URI'] =~ /mypath/).present?
  8.  
  9. @app.call(env)
  10. end
  11. end
Add Comment
Please, Sign In to add comment