0
0
Fork 0

reduce logs

This commit is contained in:
Xeltica 2021-01-28 03:22:32 +09:00
parent 11580eec42
commit 2e253f52bc
3 changed files with 1 additions and 3 deletions

View file

@ -64,7 +64,6 @@ router.get('/', async ctx => {
const isAvailable = user && await apiAvailable(user.host, user.token); const isAvailable = user && await apiAvailable(user.host, user.token);
const usersCount = await getUserCount(); const usersCount = await getUserCount();
const ranking = await getRanking(10); const ranking = await getRanking(10);
console.log(ranking);
if (user && isAvailable) { if (user && isAvailable) {
const meta = await api<{ version: string }>(user?.host, 'meta', {}); const meta = await api<{ version: string }>(user?.host, 'meta', {});

View file

@ -28,7 +28,7 @@ export default (): void => {
console.info(`${user.username}@${user.host} is deleted, so delete this user from the system`); console.info(`${user.username}@${user.host} is deleted, so delete this user from the system`);
await deleteUser(user.username, user.host); await deleteUser(user.username, user.host);
} else { } else {
console.error(e); console.error(`${e.name}: ${e.message}`);
} }
} finally { } finally {
if (user.alertMode === 'note') if (user.alertMode === 'note')

View file

@ -23,7 +23,6 @@ mixin rankingTable()
- -
let rank = 1; let rank = 1;
let lastRating = ''; let lastRating = '';
console.log(ranking);
each rec in ranking each rec in ranking
- const rating = rec.rating.toFixed(2); - const rating = rec.rating.toFixed(2);
tr tr