Skip to content

Commit

Permalink
Merge pull request #85 from 100-hours-a-week/hotfix/deploy-1
Browse files Browse the repository at this point in the history
fi: SentryConfig 설정 수정 6
  • Loading branch information
49EHyeon42 authored Aug 25, 2024
2 parents e72a107 + 58a24d0 commit 15e097a
Showing 1 changed file with 20 additions and 20 deletions.
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));
}
}

0 comments on commit 15e097a

Please sign in to comment.