mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Change log level of worker start/end to warn in streaming API (#16110)
This commit is contained in:
parent
f627d2eb93
commit
aafe65a142
1 changed files with 4 additions and 4 deletions
|
@ -99,11 +99,11 @@ const startMaster = () => {
|
||||||
log.warn('UNIX domain socket is now supported by using SOCKET. Please migrate from PORT hack.');
|
log.warn('UNIX domain socket is now supported by using SOCKET. Please migrate from PORT hack.');
|
||||||
}
|
}
|
||||||
|
|
||||||
log.info(`Starting streaming API server master with ${numWorkers} workers`);
|
log.warn(`Starting streaming API server master with ${numWorkers} workers`);
|
||||||
};
|
};
|
||||||
|
|
||||||
const startWorker = (workerId) => {
|
const startWorker = (workerId) => {
|
||||||
log.info(`Starting worker ${workerId}`);
|
log.warn(`Starting worker ${workerId}`);
|
||||||
|
|
||||||
const pgConfigs = {
|
const pgConfigs = {
|
||||||
development: {
|
development: {
|
||||||
|
@ -1067,11 +1067,11 @@ const startWorker = (workerId) => {
|
||||||
}, 30000);
|
}, 30000);
|
||||||
|
|
||||||
attachServerWithConfig(server, address => {
|
attachServerWithConfig(server, address => {
|
||||||
log.info(`Worker ${workerId} now listening on ${address}`);
|
log.warn(`Worker ${workerId} now listening on ${address}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
const onExit = () => {
|
const onExit = () => {
|
||||||
log.info(`Worker ${workerId} exiting, bye bye`);
|
log.warn(`Worker ${workerId} exiting`);
|
||||||
server.close();
|
server.close();
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue