Explorar el Código

add missing log part

hmt hace 3 años
padre
commit
91d620c59f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app.ts

+ 2 - 2
app.ts

@@ -44,11 +44,11 @@ router.all("/:call", async (req, res, next) => {
     server = await handler.find_meeting_id(S.servers)
     res.locals.log.push(`found, ${handler.call==='join'?'redirect to':'reply with'} ${server.host}`)
   } catch (e) {
-    res.locals.log.push(`${Color.yellow("not found,")}`)
+    res.locals.log.push(`${Color.yellow("not found")},`)
     if (handler.call === 'create') {
       S.get_available_server()
       res.locals.log.push(`open new room on ${Color.green(S.current_server.host)}`);
-    }
+    } else res.locals.log.push(`reply with ${S.current_server.host}`)
     server = S.current_server
   }
   const redirect = handler.rewritten_query(server)