ashb commented on code in PR #27758:
URL: https://github.com/apache/airflow/pull/27758#discussion_r1054272762
##########
airflow/utils/serve_logs.py:
##########
@@ -138,19 +138,19 @@ def load(self):
return self.application
-def serve_logs():
+def serve_logs(port=None):
"""Serves logs generated by Worker"""
setproctitle("airflow serve-logs")
wsgi_app = create_app()
- worker_log_server_port = conf.getint("logging", "WORKER_LOG_SERVER_PORT")
+ port = port if port is not None else conf.getint("logging",
"WORKER_LOG_SERVER_PORT")
Review Comment:
```suggestion
port = port or conf.getint("logging", "WORKER_LOG_SERVER_PORT")
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]