Skip to content

Commit

Permalink
fix: downgrade more loggers (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Sep 2, 2022
1 parent a2f1d1b commit 3deb74f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bluetooth_adapters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,24 @@ async def _get_dbus_managed_objects() -> dict[str, Any]:
).connect()
except FileNotFoundError as ex:
if is_docker_env():
_LOGGER.warning(
_LOGGER.debug(
"DBus service not found; docker config may "
"be missing `-v /run/dbus:/run/dbus:ro`: %s",
ex,
)
_LOGGER.warning(
_LOGGER.debug(
"DBus service not found; make sure the DBus socket " "is available: %s",
ex,
)
return {}
except BrokenPipeError as ex:
if is_docker_env():
_LOGGER.warning(
_LOGGER.debug(
"DBus connection broken: %s; try restarting "
"`bluetooth`, `dbus`, and finally the docker container",
ex,
)
_LOGGER.warning(
_LOGGER.debug(
"DBus connection broken: %s; try restarting " "`bluetooth` and `dbus`", ex
)
return {}
Expand Down

0 comments on commit 3deb74f

Please sign in to comment.