Module: IpfixerClient::Logger
- Included in:
- IpfixerClient
- Defined in:
- lib/ipfixer_client/logger.rb
Instance Method Summary collapse
-
#dbg_post_ip(host_name, ip, response, body) ⇒ Object
I moved this here so I’d have all debug output in the same file…
- #dbg_tell_ddns_our_new_ip(code) ⇒ Object
- #err_ddns_gave_wrong_response_code ⇒ Object
- #err_getting_ip(ip_lookup_url, message) ⇒ Object
- #err_tell_ddns_our_new_ip(ddns_update_url) ⇒ Object
Instance Method Details
#dbg_post_ip(host_name, ip, response, body) ⇒ Object
I moved this here so I’d have all debug output in the same file… But wouldn’t it be better to have a module named Dbg.post_ip instead?
28 29 30 31 32 33 34 |
# File 'lib/ipfixer_client/logger.rb', line 28 def dbg_post_ip(host_name, ip, response, body) my_logger "DEBUGGER: In Post_IP" my_logger " host_name: #{host_name}" my_logger " ip: #{ip}" my_logger " Response: #{response}" my_logger " Req body: #{body}" end |
#dbg_tell_ddns_our_new_ip(code) ⇒ Object
36 37 38 |
# File 'lib/ipfixer_client/logger.rb', line 36 def dbg_tell_ddns_our_new_ip(code) my_logger "Sent msg to ddns... response code was...#{code}. #{Time.now}" end |
#err_ddns_gave_wrong_response_code ⇒ Object
51 52 53 54 |
# File 'lib/ipfixer_client/logger.rb', line 51 def err_ddns_gave_wrong_response_code my_logger "failed to properly tell ddns our new ip..." false end |
#err_getting_ip(ip_lookup_url, message) ⇒ Object
40 41 42 43 44 |
# File 'lib/ipfixer_client/logger.rb', line 40 def err_getting_ip(ip_lookup_url, ) my_logger "**ERROR: Something went wrong trying to get current IP Address" my_logger "ip_lookup_url: #{ip_lookup_url}" my_logger "Exception: #{}" end |
#err_tell_ddns_our_new_ip(ddns_update_url) ⇒ Object
46 47 48 49 |
# File 'lib/ipfixer_client/logger.rb', line 46 def err_tell_ddns_our_new_ip(ddns_update_url) my_logger "Exception occured whil trying to tell_ddns_our_new_ip..." my_logger "Url was #{ddns_update_url}" end |