diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-06 15:06:23 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-06 15:06:23 +0900 |
| commit | 71ba72e7967fbc8ae935bff9d87669a9f307b583 (patch) | |
| tree | 87288b96f5d2f407400b3e36c5846d4080b18371 /src/remote | |
| parent | Improve queue option (diff) | |
| download | sharkey-71ba72e7967fbc8ae935bff9d87669a9f307b583.tar.gz sharkey-71ba72e7967fbc8ae935bff9d87669a9f307b583.tar.bz2 sharkey-71ba72e7967fbc8ae935bff9d87669a9f307b583.zip | |
Better logs
Diffstat (limited to 'src/remote')
| -rw-r--r-- | src/remote/activitypub/request.ts | 4 |
1 files 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(); } }); |