Skip to content

Commit 6cbc395

Browse files
committed
Align log message wording
1 parent 8b04d51 commit 6cbc395

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/publishBlueSky.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ module.exports = async (post) => {
2525
}
2626
})
2727

28-
logger.info(`[${colors.green('✔')}] Post published: ${JSON.stringify(res)}`)
28+
logger.info(`[${colors.green('✔')}] BlueSky post published: ${JSON.stringify(res)}`)
2929
} catch (error) {
30-
logger.warn(`[${colors.red('❌')}] Post failed: ${colors.red(error)}`)
30+
logger.warn(`[${colors.red('❌')}] BlueSky post failed: ${colors.red(error)}`)
3131
}
3232
} else {
33-
logger.info(`[${colors.yellow('🟡')}] Skipped BlueSky post: ${colors.yellow('Post will only be published when PUBLISHING_MODE is set as an environment variable')}`)
33+
logger.info(`[${colors.yellow('🟡')}] BlueSky post skipped: ${colors.yellow('Post will only be published when PUBLISHING_MODE is set as an environment variable')}`)
3434
}
3535
}

lib/publishMastodon.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ module.exports = async (status) => {
1515
if (process.env.PUBLISHING_MODE) {
1616
try {
1717
const res = await masto.v1.statuses.create({ status })
18-
logger.info(`[${colors.green('✔')}] Post published: ${res.url}`)
18+
logger.info(`[${colors.green('✔')}] Mastodon post published: ${res.url}`)
1919
} catch (error) {
20-
logger.warn(`[${colors.red('❌')}] Post failed: ${colors.red(error)}`)
20+
logger.warn(`[${colors.red('❌')}] Mastodon post failed: ${colors.red(error)}`)
2121
}
2222
} else {
23-
logger.info(`[${colors.yellow('🟡')}] Skipped Mastodon post: ${colors.yellow('Post will only be published when PUBLISHING_MODE is set as an environment variable')}`)
23+
logger.info(`[${colors.yellow('🟡')}] Mastodon post skipped: ${colors.yellow('Post will only be published when PUBLISHING_MODE is set as an environment variable')}`)
2424
}
2525
}

lib/publishReddit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ module.exports = (text, title) => {
2424
logger.warn(`[${colors.red('❌')}] Reddit post failed: ${colors.red(error)}`)
2525
})
2626
} else {
27-
logger.info(`[${colors.yellow('🟡')}] Skipped Reddit post: ${colors.yellow('Post will only be published when PUBLISHING_MODE is set as an environment variable')}`)
27+
logger.info(`[${colors.yellow('🟡')}] Reddit post skipped: ${colors.yellow('Post will only be published when PUBLISHING_MODE is set as an environment variable')}`)
2828
}
2929
}

0 commit comments

Comments
 (0)