Logging fixed. Debugging finished.
This commit is contained in:
parent
bc7541a2c9
commit
b6dee6b93c
4 changed files with 4 additions and 16 deletions
|
|
@ -13,7 +13,7 @@ class Log < ApplicationRecord
|
|||
order('id DESC')
|
||||
}
|
||||
|
||||
def self.log(message, ip_address, section='frontend', level='info')
|
||||
def self.log(message, ip_address='0.0.0.0', section='frontend', level='info')
|
||||
log = Log.new
|
||||
|
||||
ip_address = request.remote_ip if defined? request
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue