Skip to content
This repository was archived by the owner on Sep 27, 2021. It is now read-only.

Commit 24acb6a

Browse files
committed
use hostname for worker logs
1 parent 5caf79d commit 24acb6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const getKeyPair = () => keys[Math.floor(Math.random() * keys.length)];
1313

1414
const nile = new Nile('gitbackup.org');
1515

16-
const nileLog = log => nile.pushChunk(`worker${typeof process.env.pm_id === 'string' ? `-${process.env.pm_id}` : ''}`, log);
16+
const nileLog = log => nile.pushChunk(`${os.hostname()}-${process.env.pm_id}`, log);
1717

1818
async function getGithubEndpoint(...args) {
1919
try {

0 commit comments

Comments
 (0)