arozantsev's picture
Deploy simready-assets run 20260928-ed4eb73 (GPU variant)
6f8eac4 verified
Raw History Blame Contribute Delete
2.63 kB
# Copied verbatim from ../usdsearch's own logging.yml (root of that repo,
# COPY'd to /logging.yml by its docker/Dockerfile.usdsearch) — the wheels in
# docker/hf-space/wheels/ carry the app code but not this repo-level config
# file, and packages/base-logging's get_logging_config() hardcodes
# /logging.yml as its default path ($LOGGING_CONFIG overrides it), so it has
# to be shipped here too or every service falls back to Python's bare
# default logging config (harmless — base_logging.setup_logging() catches
# the FileNotFoundError and just warns — but loses uvicorn's access-log
# formatting and the per-logger level tuning below, e.g. quieting
# opensearch/aiohttp.access to WARNING). Re-copy from ../usdsearch's
# logging.yml if it changes upstream; nothing here is HF-Space-specific.
#
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: 1
disable_existing_loggers: False
formatters:
default:
"()": uvicorn.logging.DefaultFormatter
format: '%(levelprefix)s %(asctime)s %(name)s - %(message)s'
access:
"()": uvicorn.logging.AccessFormatter
format: '%(levelprefix)s %(asctime)s %(name)s - %(client_addr)s - "%(request_line)s" %(status_code)s'
handlers:
default:
formatter: default
class: logging.StreamHandler
stream: ext://sys.stderr
access:
formatter: access
class: logging.StreamHandler
stream: ext://sys.stdout
loggers:
root:
level: INFO
handlers:
- default
idl.service:
level: WARNING
opensearch:
level: WARNING
aiohttp.access:
level: WARNING
uvicorn.error:
level: INFO
handlers:
- default
propagate: no
uvicorn.access:
level: INFO
handlers:
- access
propagate: no
search_backend_observability:
level: INFO
handlers:
- default
propagate: no
websockets.client:
level: INFO
opentelemetry.sdk.trace:
level: WARNING
deepsearch_api.request_duration_logger:
level: INFO
handlers:
- default
propagate: no