From 71ba72e7967fbc8ae935bff9d87669a9f307b583 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 6 Feb 2019 15:06:23 +0900 Subject: [PATCH] Better logs --- src/remote/activitypub/request.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/remote/activitypub/request.ts b/src/remote/activitypub/request.ts index e820d0c94c..7264bef24c 100644 --- a/src/remote/activitypub/request.ts +++ b/src/remote/activitypub/request.ts @@ -43,11 +43,11 @@ export default (user: ILocalUser, url: string, object: any) => new Promise(async 'Digest': `SHA-256=${hash}` } }, res => { - logger.info(`${url} --> ${res.statusCode}`); - if (res.statusCode >= 400) { + logger.warn(`${url} --> ${res.statusCode}`); reject(res); } else { + logger.succ(`${url} --> ${res.statusCode}`); resolve(); } });