We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1703012 + f4b0ceb commit 56ac641Copy full SHA for 56ac641
1 file changed
ontime-back/src/main/java/devkor/ontime_back/config/FirebaseInitialization.java
@@ -7,7 +7,7 @@
7
import org.springframework.beans.factory.annotation.Value;
8
import org.springframework.stereotype.Service;
9
10
-import javax.annotation.PostConstruct;
+import jakarta.annotation.PostConstruct;
11
import java.io.FileInputStream;
12
import java.io.FileNotFoundException;
13
import java.io.IOException;
@@ -31,6 +31,9 @@ public void initialize() {
31
32
if (FirebaseApp.getApps().isEmpty()) {
33
FirebaseApp.initializeApp(options);
34
+ log.info("Firebase initialized successfully");
35
+ } else {
36
+ log.info("Firebase already initialized");
37
}
38
} catch (IOException e) {
39
log.error("Failed to initialize Firebase", e);
0 commit comments