Ruby 有没有啥办法让 Ruby 发生异常的时候打印 log 是倒序的

guyanbiao · October 19, 2016 · Last by novtopro replied at October 20, 2016 · 2200 hits

没有人感觉每次拉到头看异常原因很蠢吗

看文件前面部分:

head -n 200 log/production.log 

看文件后面部分

tail -n 200 log/production.log 

学会用 less 的快捷键很重要

#1 楼 @huacnlee 不是这个场景哦,就是执行 rake db:migrate 这种命令时候,有时候是表名写错了,要往上拖好久,我想说的是这种

#5 楼 @greatghoul You get it. Sentry is awesome.

You need to Sign in before reply, if you don't have an account, please Sign up first.