Skip to content

Commit

Permalink
add environment logging
Browse files Browse the repository at this point in the history
  • Loading branch information
makeevrserg committed Jul 25, 2024
1 parent 5be6678 commit 6028ce7
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.flipperdevices.ifrmvp.backend.envkonfig
import com.flipperdevices.ifrmvp.backend.buildkonfig.BuildKonfig
import com.flipperdevices.ifrmvp.backend.envkonfig.model.DBConnection
import java.net.InetAddress
import java.util.logging.Logger

object EnvKonfig {
internal enum class DBType {
Expand Down Expand Up @@ -62,4 +63,12 @@ object EnvKonfig {
name = DbKonfig.DB_NAME
)
}
init {
val logger = Logger.getLogger("EnvKonfig")
logger.info("IR_DATABASE_PATH: $IR_DATABASE_PATH")
logger.info("FBACKEND_HOST: $FBACKEND_HOST")
logger.info("FBACKEND_PORT: $FBACKEND_PORT")
logger.info("DbKonfig.FBACKEND_DB_TYPE: ${DbKonfig.FBACKEND_DB_TYPE}")
logger.info("DbKonfig.FBACKEND_DB_FULL_PATH: ${DbKonfig.FBACKEND_DB_FULL_PATH}")
}
}

0 comments on commit 6028ce7

Please sign in to comment.