Skip to content

Commit 2b5daa3

Browse files
authored
Merge pull request #30 from neilenns/neilenns/issue29
Don't log a warning if the bot can't get tags for the channel
2 parents 4dc3b37 + 3f5a407 commit 2b5daa3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/events/threadUpdate.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ module.exports = {
6262
);
6363

6464
if (tagId === undefined) {
65-
logger.warn(
65+
// This is debug instead of warn because it's quite common to have no tags, it means the bot was triggered by a thread
66+
// change in a channel that doesn't have the tags enabled on it.
67+
logger.debug(
6668
`Unable to lock thread "${newThread.name}": couldn't find tag name ${process.env.SOLVED_TAG_NAME} in channel #${newThread.parent.name}.`,
6769
{
6870
thread: newThread.name,

0 commit comments

Comments
 (0)