Don't print KeepAlive messages by default.
This commit is contained in:
parent
2b3fe276a5
commit
a708d8fc46
@ -76,7 +76,9 @@ class DNSManager::Service < IPC
|
||||
end
|
||||
|
||||
reqname = request.class.name.sub /^DNSManager::Request::/, ""
|
||||
if reqname != "KeepAlive" || @configuration.print_keepalive
|
||||
Baguette::Log.debug "<< #{reqname}"
|
||||
end
|
||||
|
||||
response = begin
|
||||
request.handle self, event
|
||||
@ -105,11 +107,13 @@ class DNSManager::Service < IPC
|
||||
response_name = response.class.name.sub /^DNSManager::Response::/, ""
|
||||
|
||||
if response.is_a? DNSManager::Response::Error
|
||||
Baguette::Log.warning ">> #{response_name} (#{response.reason})"
|
||||
Baguette::Log.warning ">> #{response_name} (#{response.reason}) (Total duration: #{duration})"
|
||||
else
|
||||
if reqname != "KeepAlive" || @configuration.print_keepalive
|
||||
Baguette::Log.debug ">> #{response_name} (Total duration: #{duration})"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def run
|
||||
Baguette::Log.title "Starting #{@configuration.service_name}"
|
||||
|
Loading…
Reference in New Issue
Block a user