From 10af3e4f55e84c83570c5fa6f99e13b457c7b313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ola=20Flisb=C3=A4ck?= Date: Wed, 13 Jul 2016 19:52:50 +0200 Subject: [PATCH] Fixed a couple of debug prints --- src/telegram.js | 4 ++-- src/telegramWebHook.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/telegram.js b/src/telegram.js index 7359306..1860f6b 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -99,10 +99,10 @@ class TelegramBot extends EventEmitter { if (message.text) { debug('Text message'); this.textRegexpCallbacks.forEach(reg => { - debug('Matching %s whith', message.text, reg.regexp); + debug('Matching %s with %s', message.text, reg.regexp); const result = reg.regexp.exec(message.text); if (result) { - debug('Matches', reg.regexp); + debug('Matches %s', reg.regexp); reg.callback(message, result); } }); diff --git a/src/telegramWebHook.js b/src/telegramWebHook.js index 19c209d..9239481 100644 --- a/src/telegramWebHook.js +++ b/src/telegramWebHook.js @@ -60,7 +60,7 @@ class TelegramBotWebHook { // bound req listener _requestListener = (req, res) => { - debug('WebHook request URL:', req.url); + debug('WebHook request URL: %s', req.url); debug('WebHook request headers: %j', req.headers); // If there isn't token on URL