mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
logging part 2
This commit is contained in:
parent
416b89c6ce
commit
5b84b9a70a
2 changed files with 34 additions and 8 deletions
3
index.js
3
index.js
|
@ -18,6 +18,8 @@ const manager = new ClusterManager(client, token, {
|
|||
|
||||
(async () => {
|
||||
console.log(`v2 | starting v2.`)
|
||||
|
||||
// Logging
|
||||
manager.on("clusterProcess", ({ clusterProcess }) => {
|
||||
clusterProcess.on('close', ({code, signal}) => {
|
||||
basecamp(`<:ico_w4:1086624964284788787>\`[${process.env.HOSTNAME}]\` **\` CLUSTER_CLOSED \`** Cluster ${clusterProcess.clusterId} closed with code \`${code}\` and signal \`${signal}\` @ \`${Date.now()}\``)
|
||||
|
@ -27,6 +29,7 @@ const manager = new ClusterManager(client, token, {
|
|||
await basecamp(`\`\`\`js\n${error}\`\`\``)
|
||||
});
|
||||
})
|
||||
|
||||
await manager.run();
|
||||
console.log(`v2 | ready. took ${(Date.now() - time) / 1000}.`)
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue