Skip to content

Commit

Permalink
Merge pull request #522 from kytos-ng/hotfix/issue_215_one_log_on_int…
Browse files Browse the repository at this point in the history
…f_up

hotfix 2023.2.3: optimized logging when handling interface link up
  • Loading branch information
italovalcy authored Oct 8, 2024
2 parents df859cd + a244420 commit 3680aeb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ All notable changes to the MEF_ELine NApp will be documented in this file.
[Unreleased]
************

[2023.2.3] - 2024-10-04
***********************

Changed
=======
- Optimized logging message of interface Link Up event to be generated only once instead of for each EVC

[2023.2.2] - 2024-06-06
***********************

Expand Down
2 changes: 1 addition & 1 deletion kytos.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"username": "kytos",
"name": "mef_eline",
"description": "NApp to provision circuits from user request",
"version": "2023.2.2",
"version": "2023.2.3",
"napp_dependencies": ["kytos/flow_manager", "kytos/pathfinder", "amlight/sndtrace_cp"],
"license": "MIT",
"tags": [],
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,9 +793,9 @@ def handle_interface_link_up(self, interface):
"""
Handler for interface link_up events
"""
log.info("Event handle_interface_link_up %s", interface)
for evc in self.get_evcs_by_svc_level():
with evc.lock:
log.info("Event handle_interface_link_up %s", interface)
evc.handle_interface_link_up(
interface
)
Expand Down

0 comments on commit 3680aeb

Please sign in to comment.