diff --git a/dist/index.js b/dist/index.js index 2df5b87..4d25d86 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31,7 +31,7 @@ try { // Join channel (if we are already in the channel this does nothing) client.joinRoom(channel).then(() => { - console.log('Joined channel'); + core.info('Joined channel'); }); // Send message @@ -43,7 +43,7 @@ try { client.sendEvent(channel, 'm.room.message', content, '').then(() => { // message sent successfully }).catch((err) => { - console.log(err); + core.error(err); }); } catch (error) { core.setFailed(error.message); diff --git a/index.js b/index.js index da4bb1f..7fe5605 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,7 @@ try { // Join channel (if we are already in the channel this does nothing) client.joinRoom(channel).then(() => { - console.log('Joined channel'); + core.info('Joined channel'); }); // Send message @@ -36,7 +36,7 @@ try { client.sendEvent(channel, 'm.room.message', content, '').then(() => { // message sent successfully }).catch((err) => { - console.log(err); + core.error(err); }); } catch (error) { core.setFailed(error.message);