Last active
January 26, 2017 14:01
-
-
Save mpugach/2814413a16a58be96a60 to your computer and use it in GitHub Desktop.
Noticeable Rails debug message
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
| # Thanks to http://stackoverflow.com/a/927275/1041467 | |
| def debug_msg(msg, title = 'DEBUG') | |
| Rails.logger.debug "\e[5;1;34m#{title}:\e[0m #{msg}" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment