ログ
This commit is contained in:
parent
3a56818cea
commit
167270b1aa
1 changed files with 3 additions and 0 deletions
|
@ -100,6 +100,7 @@ router.get('/miauth', async ctx => {
|
||||||
delete sessionHostCache[session];
|
delete sessionHostCache[session];
|
||||||
if (!host) {
|
if (!host) {
|
||||||
await die(ctx);
|
await die(ctx);
|
||||||
|
console.error('host is null or undefined');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,6 +109,8 @@ router.get('/miauth', async ctx => {
|
||||||
|
|
||||||
if (!token || !user) {
|
if (!token || !user) {
|
||||||
await die(ctx);
|
await die(ctx);
|
||||||
|
if (!token) console.error('token is null or undefined');
|
||||||
|
if (!user) console.error('user is null or undefined');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue