Skip to content

Commit

Permalink
added logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteUniOldenburg committed Mar 28, 2024
1 parent 33bf34e commit 11c9b5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mango_library/negotiation/winzent/winzent_base_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ async def trigger_solver(self):

async def handle_internal_request(self, requirement):
"""
The negotiation request is from this agents. Therefore, it handles an
The negotiation request is from this agent. Therefore, it handles an
internal request and not a request from other agents. This is the
beginning of a negotiation, because messages to the neighboring agents
are sent regarding the negotiation information in the given
Expand Down Expand Up @@ -292,7 +292,7 @@ async def handle_internal_request(self, requirement):
)
# PGASC add logging
logger.debug(
f"handle_internal_request: {self.aid} sends negotiation Request"
f"handle_internal_request: {self.aid} sends negotiation Request "
f"with value: {neg_msg.value[0]} and type: {neg_msg.msg_type}"
)
self._own_request = requirement.message
Expand Down Expand Up @@ -928,19 +928,19 @@ def handle_message(self, content, meta):
content.id):
self.governor.message_journal.add(content)
if content.is_answer:
print("is answer")
req = xboole.Requirement(content,
content.sender, ttl=self._current_ttl)
asyncio.create_task(self.handle_external_reply(req,
# message_path=meta["ontology"]
))
else:
print("is request")
req = xboole.Requirement(content,
content.sender, ttl=self._current_ttl)
asyncio.create_task(self.handle_external_request(req,
# message_path=meta["ontology"]
))
else:
a = 1+1

async def send_message(self, msg, receiver=None, msg_path=None, forwarding=False):
"""
Expand Down

0 comments on commit 11c9b5b

Please sign in to comment.