-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from 100-hours-a-week/hotfix/deploy-1
fi: SentryConfig 설정 수정 6
- Loading branch information
Showing
1 changed file
with
20 additions
and
20 deletions.
There are no files selected for viewing
40 changes: 20 additions & 20 deletions
40
src/main/java/connectripbe/connectrip_be/global/config/SentryConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
//package connectripbe.connectrip_be.global.config; | ||
// | ||
//import io.sentry.Sentry; | ||
//import jakarta.annotation.PostConstruct; | ||
//import org.springframework.beans.factory.annotation.Value; | ||
//import org.springframework.context.annotation.Configuration; | ||
//import org.springframework.context.annotation.Profile; | ||
// | ||
//@Profile("prod") | ||
//@Configuration | ||
//public class SentryConfig { | ||
// | ||
//// @Value("${sentry.dsn}") | ||
//// private String sentryDsn; | ||
// | ||
// @PostConstruct | ||
// public void init() { | ||
// Sentry.init(options -> options.setDsn("https://e1612dab26d1f71e0679a75d65ff692a@o4507838250418176.ingest.us.sentry.io/4507838415044608")); | ||
// } | ||
//} | ||
package connectripbe.connectrip_be.global.config; | ||
|
||
import io.sentry.Sentry; | ||
import jakarta.annotation.PostConstruct; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.context.annotation.Profile; | ||
|
||
@Profile("prod") | ||
@Configuration | ||
public class SentryConfig { | ||
|
||
@Value("${sentry.dsn}") | ||
private String sentryDsn; | ||
|
||
@PostConstruct | ||
public void init() { | ||
Sentry.init(options -> options.setDsn(sentryDsn)); | ||
} | ||
} |