pinakes-server: bound session concurrency; handle JoinError; make analytics
retention configurable Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Iaa35af821862eeadba0a4f384b2aec2c6a6a6964
This commit is contained in:
parent
b24d4cbcdd
commit
01fc2021c0
6 changed files with 42 additions and 16 deletions
|
|
@ -48,6 +48,13 @@ impl IntoResponse for ApiError {
|
|||
(StatusCode::UNAUTHORIZED, msg.clone())
|
||||
},
|
||||
PinakesError::Authorization(msg) => (StatusCode::FORBIDDEN, msg.clone()),
|
||||
PinakesError::Serialization(msg) => {
|
||||
tracing::error!(error = %msg, "serialization error");
|
||||
(
|
||||
StatusCode::INTERNAL_SERVER_ERROR,
|
||||
"data serialization error".to_string(),
|
||||
)
|
||||
},
|
||||
PinakesError::Config(_) => {
|
||||
tracing::error!(error = %self.0, "configuration error");
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue