Permalink
Browse files

adjust logging levels to be less spamy, info is supposed to be the "p…

…roduction" type setup yet it logs on every request
  • Loading branch information...
rip@devco.net
rip@devco.net committed Aug 24, 2009
1 parent 5b0c598 commit 03f147b41355255e60c38a6966cca25deaa3e8c7
Showing with 5 additions and 5 deletions.
  1. +5 −5 ruby-pdns/lib/pdns/runner.rb
@@ -62,8 +62,8 @@ def load_records
# General maintenance handler script
def do_maint
- Pdns.info "Starting maintenance routines"
- Pdns.info "Ending maintenance routines"
+ Pdns.debug "Starting maintenance routines"
+ Pdns.debug "Ending maintenance routines"
end
# Listens on STDIN for messages from PDNS and process them
@@ -88,7 +88,7 @@ def pdns_loop
end
if (Time.now - @lastrecordload) > @config.reload_interval
- Pdns.info("Reloading records from disk due to reload_interval")
+ Pdns.debug("Reloading records from disk due to reload_interval")
load_records
end
else
@@ -113,7 +113,7 @@ def handle_seven_param_request(pdnsinput)
:localip => t[6]}
if @resolver.can_answer?(request)
- Pdns.info("Handling lookup for #{request[:qname]} from #{request[:remoteip]}")
+ Pdns.debug("Handling lookup for #{request[:qname]} from #{request[:remoteip]}")
begin
answers = @resolver.do_query(request)
@@ -161,7 +161,7 @@ def handle_seven_param_request(pdnsinput)
Pdns.debug("END")
puts("END")
else
- Pdns.info("Asked to serve #{request[:qname]} but don't know how")
+ Pdns.error("Asked to serve #{request[:qname]} but don't know how")
# Send an END and not a FAIL, FAIL results in PDNS sending SERVFAIL to the clients
# which is just very retarded, #fail.

0 comments on commit 03f147b

Please sign in to comment.