Created
September 5, 2014 20:26
-
-
Save thiagofm/6a5da6d18e26c6290c38 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'securerandom' | |
| error_id = SecureRandom.hex | |
| raise "Erro bolado. Error Id: #{error_id}" | |
| Rails.logger.fatal "Error Id: #{error_id}. Status code: #{response.status_code}... (informações de debug como parâmetros passados para o request e variáveis de estado que podem ajudar a debugar" | |
| # quando der problema, é só pedir o error Id que estourou no cliente e buscar nos logs... | |
| #UtilidadePublica |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment