Skip to content

Commit 73c51dd

Browse files
committed
silence more messages in github action
1 parent 8b72bbb commit 73c51dd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

server/index.mjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ function startServerProcess(project) {
7979

8080
let serverProcess
8181
if (isDevelopment) {
82-
console.warn("Running without Bubblewrap container!")
82+
if (!isGithubAction) {
83+
console.warn("Running without Bubblewrap container!")
84+
}
8385
serverProcess = cp.spawn("lean", ["--server"], { cwd: projectPath })
8486
} else {
8587
console.info("Running with Bubblewrap container.")
@@ -138,19 +140,19 @@ wss.addListener("connection", function(ws, req) {
138140
});
139141

140142
ws.on('close', () => {
141-
console.log(`[${new Date()}] Socket closed - ${ip}`)
142143
socketCounter -= 1
143144
if (!isGithubAction) {
145+
console.log(`[${new Date()}] Socket closed - ${ip}`)
144146
logStats()
145147
}
146148
})
147149

148150
socketConnection.onClose(() => serverConnection.dispose())
149151
serverConnection.onClose(() => socketConnection.dispose())
150152

151-
console.log(`[${new Date()}] Socket opened - ${ip}`)
152153
socketCounter += 1
153154
if (!isGithubAction) {
155+
console.log(`[${new Date()}] Socket opened - ${ip}`)
154156
logStats()
155157
}
156158
})

0 commit comments

Comments
 (0)