pict-rs/releases/0.5.15.md
asonix f05eed2e36
Some checks failed
/ check (aarch64-unknown-linux-musl) (push) Successful in 2m11s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 2m13s
/ check (x86_64-unknown-linux-musl) (push) Successful in 2m14s
/ clippy (push) Successful in 1m26s
/ tests (push) Successful in 1m54s
/ publish-docker (push) Successful in 15s
/ publish-crate (push) Successful in 2m6s
/ publish-forgejo (push) Failing after 8s
/ build (map[artifact:linux-amd64 platform:linux/amd64 target:x86_64-unknown-linux-musl]) (push) Successful in 6m29s
/ build (map[artifact:linux-arm32v7 platform:linux/arm/v7 target:armv7-unknown-linux-musleabihf]) (push) Successful in 7m3s
/ build (map[artifact:linux-arm64v8 platform:linux/arm64 target:aarch64-unknown-linux-musl]) (push) Successful in 4m12s
Prepare 0.5.15
2024-06-04 11:49:13 -05:00

59 lines
1.6 KiB
Markdown

# pict-rs 0.5.15
pict-rs is a simple image hosting microservice, designed to handle storing and retrieving images,
animations, and videos, as well as providing basic image processing functionality.
## Overview
pict-rs 0.5.15 includes a bugfix for cleaning proxied media, updated dependencies, and a new option
to log requests.
### Fixes
- [Proxied Media Cleanup](#proxied-media-cleanup)
### Additions
- [Request Logging](#request-logging)
## Upgrade Notes
There are no significant changes from 0.5.14. Upgrading should be a simple as pulling a new version
of pict-rs.
## Descriptions
### Proxied Media Cleanup
At some point, the cleanup logic for proxied media got flipped around to try removing the internal
alias before removing the proxy record. This works fine with a sled backend, but not with a
postgres backend, and postgres would complain about invalidating a foreign key relationship.
pict-rs 0.5.15 fixes this by ensuring that the related proxy record is cleaned first.
### Request Logging
A new configuration option has been added to pict-rs as an option to get more information about
what pict-rs is doing. By default, pict-rs only logs what it considers to be errors, but when
`log_requests` is enabled, it will also log information about successful requests. This can help
with debugging without enabling full debug logs or resorting to logging spans.
It can be configured via toml
```toml
[tracing.logging]
log_requests = true
```
via environment variables
```bash
PICTRS__TRACING__LOGGING__LOG_REQUESTS=true
```
or via the commandline
```bash
pict-rs --log-requests run
```