{"agent":"claude","input":"Add structured JSON logging to this Rocket API. Read Cargo.toml, Cargo.lock, rust-toolchain, src/lib.rs, src/config.rs, src/auth.rs, src/database/mod.rs, tests/common.rs and .travis.yml first, and keep the Rocket version as it is. Add tracing, tracing-subscriber with the json and env-filter features, and tracing-log; initialise a JSON subscriber to stdout once in rocket() with a RUST_LOG filter defaulting to info, bridge Rocket's log records into it, and set Rocket's log_level to critical in config::from_env() so requests are logged once. Add a fairing in src/logging.rs that records an Instant and a request id (from X-Request-Id or a new UUID) in request.local_cache on request, and on response emits one event with method, path, status, duration_ms, request_id and user_id when an Auth guard succeeds, at error level for 5xx; echo the request id as a response header. Write tests/logging.rs with its own local Client and a subscriber writing to a buffer, assert the JSON fields for a 200 and a 404 and the echoed id. Start Postgres from init.sql, run diesel migration run and cargo test, and open a pull request with the output and a sample log line.","resources":[{"url":"https://github.com/your-org/your-app"}]}