From 341d1baaf08d82b5af1509441050c0eef234ea5f Mon Sep 17 00:00:00 2001
From: Kai Reinhard <K.Reinhard@micromata.de>
Date: Mon, 19 Apr 2021 20:04:12 +0000
Subject: [PATCH] Nothing real: startApp fun removed (Start-up isnt't finished there).

---
 borgbutler-server/src/main/kotlin/de/micromata/borgbutler/server/BorgButlerApplication.kt |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/borgbutler-server/src/main/kotlin/de/micromata/borgbutler/server/BorgButlerApplication.kt b/borgbutler-server/src/main/kotlin/de/micromata/borgbutler/server/BorgButlerApplication.kt
index 935dc57..6666717 100644
--- a/borgbutler-server/src/main/kotlin/de/micromata/borgbutler/server/BorgButlerApplication.kt
+++ b/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...")

--
Gitblit v1.10.0