mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 11:42:07 +00:00
* Update README.md * Add structured JSON production logging (#105) * Log requests and background failures (#107) * Document production logging and the VPS runbook
This commit is contained in:
@@ -290,6 +290,10 @@ defmodule ChesstrainerWeb.UserAuth do
|
||||
end
|
||||
|
||||
defp mount_current_scope(socket, session) do
|
||||
if request_id = session["request_id"] do
|
||||
Logger.metadata(request_id: request_id)
|
||||
end
|
||||
|
||||
Phoenix.Component.assign_new(socket, :current_scope, fn ->
|
||||
{user, _} =
|
||||
if user_token = session["user_token"] do
|
||||
|
||||
Reference in New Issue
Block a user