Skip to content

Commit 3f5a407

Browse files
committed
Don't log a warning if the bot can't get tags for the channel
Fixes #29
1 parent 4dc3b37 commit 3f5a407

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)