Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't log "403" from worker serve-logs as "Unknown error". (apache#37933
) If you make a request to `http://localhost:8793/` it would get denied from this block on L82: ```python auth = request.headers.get("Authorization") if auth is None: logger.warning("The Authorization header is missing: %s.", request.headers) abort(403) `` abort is internally implemented to raise an exception. However since that `abort()` call was inside a try/except block, it was getting caught under the `execpt Exception:` fallback and running this: ``` except Exception: logger.warning("Unknown error", exc_info=True) abort(403) ``` So nothing was wrong with the behaviour (it still 403d the request), it's just the logs were slightly confusing.
- Loading branch information