Skip to content
Snippets Groups Projects
Commit 70244524 authored by lorenz's avatar lorenz
Browse files

Add logger to Yaml loader

parent ee61dd1b
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus,!78Resolve "Implement Quarkus/Kotlin protype"
......@@ -2,6 +2,8 @@ package theodolite
import io.fabric8.kubernetes.api.model.Service
import io.fabric8.kubernetes.client.NamespacedKubernetesClient
import mu.KotlinLogging
private val logger = KotlinLogging.logger {}
class YamlLoader(client: NamespacedKubernetesClient) {
var client = client
......@@ -13,6 +15,8 @@ class YamlLoader(client: NamespacedKubernetesClient) {
try {
service = client.services().load(path).get()
}catch (e : Exception){
logger.info("You potentially misspeled the path: $path")
logger.info("$e")
}
return service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment