mirror of
https://github.com/storytold/craft-anything.git
synced 2026-11-21 06:50:51 +01:00
write_failure_log wrote the error's message, which repeats what the service or a proxy in front of it answered (up to 1,000 characters of an HTTP error, all of a stream's error message), so a key or words from the request repeated there were kept in logs/. The log now keeps Craft Anything's code for the error, the HTTP status, the context window and request size, and the service's error code only when it is one of failure::KNOWN_PROVIDER_ERRORS, written from that list.