Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 491fc185 authored by Thomas Lavocat's avatar Thomas Lavocat
Browse files

add debug comments to find this bug

parent 0885ddae
......@@ -210,13 +210,12 @@ class Erebor:
snetworkId, m):
gateway_network = None
neighbour_gateway = None
# if we have a gateway to send the message
logger.debug("if we have a gateway to send the message");
if dnetowkrId in self.routing_table.keys() :
neighbour_gateway = self.routing_table[dnetowkrId]
gateway_network = self.networks.get(neighbour_gateway.networkId)
# If we do not know the route, send to the master he'll know what to
# do.
else :
logger.debug("If we do not know the route, send to the master he'll know what to do.")
# otherwise take the default route
logger.debug("take master network to send the message")
gateway_network = self.master_network
......@@ -227,8 +226,7 @@ class Erebor:
consts.FROM:snode+"@"+snetworkId,
consts.DEST:dnode+"@"+dnetowkrId,
consts.DATA:m})
# if we are on the same network, send directly to the dnode
# otherwise, send to the gateway rank
loggger.debug("if we are on the same network, send directly to the dnode")
if neighbour_gateway.networkId == dnetowkrId :
logger.debug(
" TRANS-NETWORK for {}@{}, gateway {}@{}".format(
......@@ -241,6 +239,7 @@ class Erebor:
message,
False)
else :
logger.debug("otherwise, send to the gateway rank")
logger.debug(
" TRANS-NETWORK for {}@{}, gateway {}@{}".format(
dnode, dnetowkrId,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment