Commit a11b2da8 authored by seykron's avatar seykron
Browse files

Issue #24: change startup logs to info

parent c518ff85
......@@ -65,9 +65,11 @@ class SlackClient(
private lateinit var client: RTMClient
override fun start() {
logger.info("initializing slack client")
initSlackHandler()
initHttpServer()
initReconnectMonitor()
logger.info("slack client ready")
}
override fun sendMessage(message: MessageBuilder): List<Message> {
......
......@@ -81,7 +81,7 @@ class TelegramClient(
override fun start() {
mediaManager.client = this
logger.debug("Start polling")
logger.info("start polling for updates")
bot.startPolling()
}
......
......@@ -30,7 +30,7 @@ class Tehanu(
}
init {
logger.debug("Registering bot into BotAware listeners")
logger.info("Registering bot into BotAware listeners")
botListeners.forEach { botListener ->
botListener.tehanu = this
}
......@@ -39,11 +39,12 @@ class Tehanu(
fun start() = runBlocking {
require(clients.isNotEmpty()) { "No clients found, at least one should be registered in the context." }
logger.debug("Initializing clients")
logger.info("Initializing clients")
clients.forEach { client ->
launch {
client.start()
}
}
logger.info("Tehanu is ready")
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment