aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/udp_server.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/udp_server.rb')
-rw-r--r--lib/mauve/udp_server.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/mauve/udp_server.rb b/lib/mauve/udp_server.rb
index 59bc5bc..8649efe 100644
--- a/lib/mauve/udp_server.rb
+++ b/lib/mauve/udp_server.rb
@@ -15,6 +15,7 @@ module Mauve
attr_accessor :ip, :port, :sleep_interval
def initialize
+ super
#
# Set the logger up
#
@@ -49,7 +50,7 @@ module Mauve
@socket.bind(@ip, @port)
- logger.debug("Successfully opened UDP socket on #{@ip}:#{@port}")
+ logger.info("Successfully opened UDP socket on #{@ip}:#{@port}")
end
def close_socket
@@ -59,10 +60,11 @@ module Mauve
@socket.close
rescue IOError => ex
# Just in case there is some sort of explosion!
- logger.debug("Caught IOError #{ex.to_s}")
+ logger.error "Caught IOError #{ex.to_s}"
+ logger.debug ex.backtrace.join("\n")
end
- logger.debug("Successfully closed UDP socket")
+ logger.info("Successfully closed UDP socket")
end
def main_loop