Skip to content

Fix bridge server ip#271

Merged
from2001 merged 3 commits intodevelopfrom
from2001/bridge-server-ip
Jan 12, 2026
Merged

Fix bridge server ip#271
from2001 merged 3 commits intodevelopfrom
from2001/bridge-server-ip

Conversation

@from2001
Copy link
Collaborator

This pull request introduces improvements to server startup flexibility and logging clarity, along with a minor adjustment to test assertion formatting. The most significant changes are grouped below.

Server startup and logging improvements:

  • The start method in Server now accepts an optional ip_addresses parameter, allowing for more flexible IP address configuration during server startup.
  • The log message for the REST bridge startup now displays the actual IP address being used, improving clarity for users when multiple IP addresses are available.
  • The main function is updated to pass the ip_addresses argument to server.start, ensuring the new functionality is utilized during server initialization.
  • The Uvicorn server configuration changes its log level from "info" to "warning", reducing log verbosity during normal operation.

Test formatting:

  • Minor formatting update to the assertion in test_server_with_custom_discovery_port for improved readability.

Close #270

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request improves the REST bridge startup logging to display the actual server IP address instead of the generic "0.0.0.0", and reduces Uvicorn log verbosity by changing the log level from "info" to "warning".

Changes:

  • Modified Server.start() method to accept an optional ip_addresses parameter for flexible IP configuration
  • Updated REST bridge startup log message to display the first detected IP address when available
  • Changed Uvicorn log level from "info" to "warning" to reduce log verbosity

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
STYLY-NetSync-Server/src/styly_netsync/server.py Added optional ip_addresses parameter to start() method, updated REST bridge log to show actual IP address, and passed IP addresses from main() to start()
STYLY-NetSync-Server/src/styly_netsync/rest_bridge.py Changed Uvicorn log level from "info" to "warning" to reduce verbosity
STYLY-NetSync-Server/tests/test_all_run_methods.py Reformatted assertion for improved readability (no functional change)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@from2001 from2001 merged commit 8ae1e07 into develop Jan 12, 2026
6 checks passed
@from2001 from2001 deleted the from2001/bridge-server-ip branch January 12, 2026 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bridge server ip address

2 participants