diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-03 18:16:57 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-03 18:16:57 +0900 |
| commit | 0868c3517f8c2dda5527c8863ce5144fffde0eb5 (patch) | |
| tree | 7e60d3bffc3fec88ca67943147c66c6009b61246 /src/queue/processors/http/index.ts | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | misskey-0868c3517f8c2dda5527c8863ce5144fffde0eb5.tar.gz misskey-0868c3517f8c2dda5527c8863ce5144fffde0eb5.tar.bz2 misskey-0868c3517f8c2dda5527c8863ce5144fffde0eb5.zip | |
Use internal logger instead of debug/console for logging
Resolve #4104
Resolve #1966
Resolve #1937
Diffstat (limited to 'src/queue/processors/http/index.ts')
| -rw-r--r-- | src/queue/processors/http/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/queue/processors/http/index.ts b/src/queue/processors/http/index.ts index 156be42250..74ed723bd3 100644 --- a/src/queue/processors/http/index.ts +++ b/src/queue/processors/http/index.ts @@ -1,5 +1,6 @@ import deliver from './deliver'; import processInbox from './process-inbox'; +import { queueLogger } from '../..'; const handlers: any = { deliver, @@ -12,7 +13,7 @@ export default (job: any, done: any) => { if (handler) { handler(job, done); } else { - console.error(`Unknown job: ${job.data.type}`); + queueLogger.error(`Unknown job: ${job.data.type}`); done(); } }; |