Skip to content

Commit

Permalink
chore(plugin): be more specific on session delete
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Jun 6, 2023
1 parent 70f8229 commit 2422e4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ export const plugin: FastifyPluginAsync<FastifySessionOptions> = async (
expires: new Date(0),
maxAge: 0,
});
log.debug({ ...bindings, sessionId: session.id }, "Deleted existing session");
log.debug(
{ ...bindings, sessionId: session.id },
`Deleted ${session.created ? "newly created" : "existing"} session`
);
return;
} else if (!saveUninitialized && session.isEmpty()) {
log.debug(
Expand Down

0 comments on commit 2422e4e

Please sign in to comment.