mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
19.04.2021 341d1baaf08d82b5af1509441050c0eef234ea5f
Nothing real: startApp fun removed (Start-up isnt't finished there).
1 files modified
7 ■■■■■ changed files
borgbutler-server/src/main/kotlin/de/micromata/borgbutler/server/BorgButlerApplication.kt 7 ●●●●● patch | view | raw | blame | history
borgbutler-server/src/main/kotlin/de/micromata/borgbutler/server/BorgButlerApplication.kt
@@ -16,8 +16,6 @@
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.event.ApplicationReadyEvent
import org.springframework.context.event.EventListener
import java.awt.Desktop
import java.io.*
import java.net.URI
@@ -148,11 +146,6 @@
        ButlerCache.getInstance() // Force initialization (otherwise shutdown may fail if cache isn't used beof).
    }
    @EventListener(ApplicationReadyEvent::class)
    open fun startApp() {
        log.info { "Start-up of BorgButler finished. Have fun!" }
    }
    @PreDestroy
    open fun shutdownApp() {
        log.info("Shutting down BorgButler web server...")