]> cat aescling's git repositories - mastodon.git/commitdiff
Change log level of worker start/end to warn in streaming API (#16110)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 1 May 2021 21:19:18 +0000 (23:19 +0200)
committerGitHub <noreply@github.com>
Sat, 1 May 2021 21:19:18 +0000 (23:19 +0200)
streaming/index.js

index c50d3558314df4155a2acc7145da5e76ce6b38bc..0af80daadd23bbd44714309c8da08a48f3fcaf15 100644 (file)
@@ -99,11 +99,11 @@ const startMaster = () => {
     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) => {
-  log.info(`Starting worker ${workerId}`);
+  log.warn(`Starting worker ${workerId}`);
 
   const pgConfigs = {
     development: {
@@ -1067,11 +1067,11 @@ const startWorker = (workerId) => {
   }, 30000);
 
   attachServerWithConfig(server, address => {
-    log.info(`Worker ${workerId} now listening on ${address}`);
+    log.warn(`Worker ${workerId} now listening on ${address}`);
   });
 
   const onExit = () => {
-    log.info(`Worker ${workerId} exiting, bye bye`);
+    log.warn(`Worker ${workerId} exiting`);
     server.close();
     process.exit(0);
   };