mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 03:11:24 +00:00
Prepare 0.5.15
This commit is contained in:
parent
69470c8a38
commit
f05eed2e36
5 changed files with 66 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1996,7 +1996,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "pict-rs"
|
||||
version = "0.5.14"
|
||||
version = "0.5.15"
|
||||
dependencies = [
|
||||
"actix-form-data",
|
||||
"actix-web",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "pict-rs"
|
||||
description = "A simple image hosting service"
|
||||
version = "0.5.14"
|
||||
version = "0.5.15"
|
||||
authors = ["asonix <asonix@asonix.dog>"]
|
||||
license = "AGPL-3.0"
|
||||
readme = "README.md"
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "pict-rs";
|
||||
version = "0.5.14";
|
||||
version = "0.5.15";
|
||||
src = ./.;
|
||||
|
||||
cargoLock = {
|
||||
|
|
|
@ -103,6 +103,11 @@ log_spans = false
|
|||
# default: false
|
||||
no_ansi = false
|
||||
|
||||
## Optional: whether to log upon request completion
|
||||
# environment variable: PICTRS__TRACING__LOGGING__LOG_REQUESTS
|
||||
# default: false
|
||||
log_requests = false
|
||||
|
||||
|
||||
## Console configuration
|
||||
[tracing.console]
|
||||
|
|
58
releases/0.5.15.md
Normal file
58
releases/0.5.15.md
Normal file
|
@ -0,0 +1,58 @@
|
|||
# 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
|
||||
```
|
Loading…
Reference in a new issue