Skip to content

Commit

Permalink
fix: firebase config
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchandev committed Sep 23, 2024
1 parent 295492e commit f311827
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import com.google.firebase.FirebaseApp;
import com.google.firebase.FirebaseOptions;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ClassPathResource;

Expand All @@ -16,7 +14,7 @@
@Slf4j
@Configuration
public class FirebaseConfig {
private static final Logger logger = LoggerFactory.getLogger(FirebaseConfig.class);

@PostConstruct
public void init(){
try{
Expand All @@ -29,8 +27,8 @@ public void init(){
FirebaseApp.initializeApp(options);
}
} catch (Exception e){
logger.error("error cause: {}, error message", e.getCause(), e.getMessage());
throw new InternalServerException();
log.error("error cause: {}, error message", e.getCause(), e.getMessage());
throw new RuntimeException(e.getMessage());
}
}
}
Expand Down

0 comments on commit f311827

Please sign in to comment.