Skip to content

Commit

Permalink
Merge pull request #23 from mivallion/master
Browse files Browse the repository at this point in the history
Change level of connection and disconnection logs from info to debug
  • Loading branch information
Mons authored Aug 6, 2024
2 parents fc32a07 + 4d2e226 commit bcadffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xqueue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ rawset(_G,"\0xq.on_connect",box.session.on_connect(function()
local peer = box.session.peer()
box.session.storage.peer = box.session.peer()
peers[ sid ] = peer
log.info("connected %s, sid=%s, fid=%s", peer, sid, fiber.id() )
log.debug("connected %s, sid=%s, fid=%s", peer, sid, fiber.id() )
end,rawget(_G,"\0xq.on_connect")))

rawset(_G,"\0xq.on_disconnect",box.session.on_disconnect(function()
local sid = box.session.id()
local peer = peers[ sid ]
peers[ sid ] = nil
log.info("disconnected %s, sid=%s, fid=%s", peer, sid, fiber.id() )
log.debug("disconnected %s, sid=%s, fid=%s", peer, sid, fiber.id() )
end,rawget(_G,"\0xq.on_disconnect")))


Expand Down

0 comments on commit bcadffd

Please sign in to comment.