Skip to content

Commit 75519de

Browse files
committed
Fix loading of logger
1 parent c45349b commit 75519de

File tree

1 file changed

+2
-1
lines changed
  • src/main/kotlin/org/fuchss/matrix/mensa

1 file changed

+2
-1
lines changed

src/main/kotlin/org/fuchss/matrix/mensa/Main.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@ import kotlin.random.Random
3737
import kotlin.time.Duration.Companion.days
3838
import kotlin.time.ExperimentalTime
3939

40-
private val logger: Logger = LoggerFactory.getLogger(MatrixBot::class.java)
40+
private lateinit var logger: Logger
4141

4242
private lateinit var commands: List<Command>
4343

4444
fun main() {
4545
Backend.set(DefaultBackend)
46+
logger = LoggerFactory.getLogger(MatrixBot::class.java)
4647

4748
runBlocking {
4849
val config = Config.load()

0 commit comments

Comments
 (0)