add tagged logging
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -30,6 +30,8 @@ gem 'daemons'
|
|||||||
gem 'net-ssh'
|
gem 'net-ssh'
|
||||||
gem 'net-sftp'
|
gem 'net-sftp'
|
||||||
|
|
||||||
|
gem 'memorylogic'
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
gem 'newrelic_rpm'
|
gem 'newrelic_rpm'
|
||||||
gem 'ruby-prof'
|
gem 'ruby-prof'
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
class ApplicationController < ActionController::Base
|
class ApplicationController < ActionController::Base
|
||||||
|
include Memorylogic
|
||||||
protect_from_forgery
|
protect_from_forgery
|
||||||
helper :pagination
|
helper :pagination
|
||||||
before_filter :set_current_user
|
before_filter :set_current_user
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ module Danbooru
|
|||||||
config.action_mailer.delivery_method = :smtp
|
config.action_mailer.delivery_method = :smtp
|
||||||
config.action_mailer.smtp_settings = {:enable_starttls_auto => false}
|
config.action_mailer.smtp_settings = {:enable_starttls_auto => false}
|
||||||
config.action_mailer.perform_deliveries = true
|
config.action_mailer.perform_deliveries = true
|
||||||
|
config.log_tags = ["PID:#{$PROCESS_ID}"]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user