Skip to content

Commit b856905

Browse files
committed
#2022 Fix application initialisation
1 parent a3d6fa5 commit b856905

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

thehive/app/org/thp/thehive/TheHiveStarter.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ object TheHiveStarter extends App {
2020
val application = {
2121
val scalligraphApplication = new ScalligraphApplicationImpl(config.rootDir, process.classLoader, mode)
2222
try {
23-
scalligraphApplication.init()
24-
23+
scalligraphApplication.initializeLogger()
24+
scalligraphApplication.loadModules()
2525
val playModules = scalligraphApplication.configuration.getOptional[Seq[String]]("play.modules.enabled").getOrElse(Nil)
2626
val loadMispModule = playModules.contains("org.thp.thehive.connector.misp.MispModule")
2727
val loadCortexModule = playModules.contains("org.thp.thehive.connector.cortex.CortexModule")
@@ -32,6 +32,7 @@ object TheHiveStarter extends App {
3232
if (loadCortexModule)
3333
scalligraphApplication.loadModule("org.thp.thehive.connector.cortex.CortexModule").foreach(_.init())
3434

35+
scalligraphApplication.initModules()
3536
scalligraphApplication.application
3637
} catch {
3738
case e: Throwable =>

0 commit comments

Comments
 (0)