add logs
This commit is contained in:
parent
d47cd4f0b9
commit
8883487425
1 changed files with 6 additions and 1 deletions
5
index.js
5
index.js
|
|
@ -179,6 +179,9 @@ async function restoreCache(cacheConfig) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function startRemoteCacheServer() {
|
async function startRemoteCacheServer() {
|
||||||
|
core.startGroup("Remote cache server")
|
||||||
|
|
||||||
|
core.debug(`Remote cache server log file path: ${config.remoteCacheServer.logPath}`)
|
||||||
const log = fs.openSync(config.remoteCacheServer.logPath, 'a')
|
const log = fs.openSync(config.remoteCacheServer.logPath, 'a')
|
||||||
const serverProcess = fork(path.join(__dirname, 'dist', 'remote-cache-server', 'index.js'), [], {
|
const serverProcess = fork(path.join(__dirname, 'dist', 'remote-cache-server', 'index.js'), [], {
|
||||||
detached: true,
|
detached: true,
|
||||||
|
|
@ -186,5 +189,7 @@ async function startRemoteCacheServer() {
|
||||||
})
|
})
|
||||||
serverProcess.unref()
|
serverProcess.unref()
|
||||||
|
|
||||||
|
core.info(`Started remote cache server (${serverProcess.pid}`)
|
||||||
core.saveState('remote-cache-server-pid', serverProcess.pid.toString())
|
core.saveState('remote-cache-server-pid', serverProcess.pid.toString())
|
||||||
|
core.endGroup()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue