Turn on logging
The SDK logs through Python’s standardlogging. Set its level to DEBUG:
mudraid namespace. Wire it to a handler if you don’t already have logging configured:
The loggers, and what each tells you
Each part of the SDK logs under its own name, so you can zoom in on one stage.| Logger | What it shows | Useful when |
|---|---|---|
mudraid.agent | Request lifecycle, 401 retries | A call behaves unexpectedly |
mudraid.token_manager | Token cache hits, mints, refreshes | You suspect a token/expiry issue |
mudraid.platform_resolver | Bootstrap, host → platform resolution | PlatformNotRegistered errors |
mudraid.http | Outbound requests to MudraID | MudraID connectivity problems |
mudraid.env | .env loading | Credentials “not found” |
Reading the output
A healthy first call typically shows: env loaded → platform resolved → token minted → request sent →200. If it stops early, the last line points at the stage that failed — for example, a platform_resolver line with no following token_manager mint usually means the host isn’t a registered platform.

