Skip to content

Commit f347440

Browse files
committed
refactor: add more context for debug
1 parent 71f213a commit f347440

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/server/model/auth.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@ export async function getAuthSession(
178178
}
179179

180180
if (!data || !Object.keys(data).length) {
181-
logger.error('Can not get info, auth session raw:', raw);
181+
logger.error('Can not get info, auth session raw:', {
182+
raw,
183+
protocol,
184+
headers: req.headers,
185+
});
182186
return null;
183187
}
184188

0 commit comments

Comments
 (0)