Obsolete
/
ipcd
Archived
3
0
Fork 0

info -> debug messages.

master
Karchnu 2020-08-24 14:09:45 +02:00
parent 0797a1a6e5
commit 7fc1632d17
1 changed files with 11 additions and 6 deletions

View File

@ -383,11 +383,13 @@ Context.service.loop do |event|
info "IPC::Event::Timer"
sending_ping_messages
when IPC::Event::Connection
info "IPC::Event::Connection: #{event.fd}"
debug "IPC::Event::Connection: #{event.fd}"
when IPC::Event::Disconnection
info "IPC::Event::Disconnection: #{event.fd}"
debug "IPC::Event::Disconnection: #{event.fd}"
when IPC::Event::ExtraSocket
info "IPC::Event::ExtraSocket: #{event.fd}"
debug "IPC::Event::ExtraSocket: #{event.fd}"
# 1. accept new websocket clients
if server.fd == event.fd
@ -404,19 +406,22 @@ Context.service.loop do |event|
# 2. active fd != server fd
activefd = event.fd
if activefd <= 0
danger "faulty activefd: #{activefd}"
end
websocket_switching_procedure activefd
when IPC::Event::Switch
puts "IPC::Event::Switch: from fd #{event.fd}"
debug "IPC::Event::Switch: from fd #{event.fd}"
raise "Not implemented."
# IPC::Event::Message has to be the last entry
# because ExtraSocket and Switch inherit from Message class
when IPC::Event::MessageSent
debug "IPC::Event::MessageSent: #{event.fd}"
danger "IPC::Event::MessageSent: #{event.fd}"
when IPC::Event::MessageReceived
info "IPC::Event::MessageReceived: #{event.fd}"
debug "IPC::Event::MessageReceived: #{event.fd}"
raise "Not implemented."
end
end