Skip to content

Commit

Permalink
added logging (maybe)
Browse files Browse the repository at this point in the history
  • Loading branch information
xane256 committed Jan 28, 2024
1 parent 3764634 commit cd20900
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/org/trackedout/AgroNet.kt
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ object AgroNet : ModInitializer {
val redisPort = System.getenv("REDIS_PORT")?.toIntOrNull() ?: 6379;
val redisPassword = System.getenv("REDIS_PASSWORD");
val jedis = Jedis(redisIp, redisPort).apply { auth(redisPassword) }
jedis.use { it.publish("datapack-updates", "request-update") }
logger.info("Logging into redis with credentials: {host: ${redisIp}, port: ${redisPort}, password: ${redisPassword}}")
jedis.use { it.publish("datapack-updates", "test-request-update") }
} catch (e: Exception) {
logger.error("Error publishing to Redis: ${e.message}");
}
Expand Down

0 comments on commit cd20900

Please sign in to comment.