Skip to content

Commit

Permalink
feat: 슬랙 error 알림 시 멘션되도록 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
miseongk committed Sep 23, 2024
1 parent 998ad9b commit c28f5f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/daily-scrum-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Send Slack Notification

on:
schedule:
- cron: '0 0 * * 1-5' # 매주 월~금 오전 1시 UTC에 실행 (한국 시간으로는 오전 9시 57로 버퍼둠)
- cron: '0 0 * * 1-5' # 매주 월~금 오전 1시 UTC에 실행

jobs:
notify:
Expand All @@ -15,7 +15,7 @@ jobs:
{
"channel": "C07LHAWLVNG",
"text": "<@U07L8AX9B4N><@U07L87A3WKY><@U07LC3Q1MEH><@U07LHEEU2BW><@U07LESGBQEP><@U07LMP4PY0L><@U07LHAXGYBE><@U07L87GGHJS>
:calendar: 보틀즈 데일리 스크럼 :calendar:**\n\n
**:calendar: 보틀즈 데일리 스크럼 :calendar:**\n\n
:one: - 완료된 작업 내용\n\n
:two: - 오늘 해야 할 작업\n\n
:three: - 겪고 있는 문제나 도움이 필요한 사항\n\n
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<configuration>
<property name="LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss} [%thread] [%X{userId}] %-5level %logger{36} - %msg %n"/>
<property name="ERROR_LOG_PATTERN"
value="&lt;@U07L8AX9B4N&gt; &lt;@U07L87A3WKY&gt;\n%d{yyyy-MM-dd HH:mm:ss} [%thread] [%X{userId}] %-5level %logger{36} - %msg %n"/>

<timestamp key="DateFormat" datePattern="yyyy-MM-dd"/>

<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
Expand Down Expand Up @@ -47,7 +50,7 @@
<webhookUri>${SLACK_WEBHOOK_URL}</webhookUri>
<channel>C07LHK2S0MV</channel>
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>${LOG_PATTERN}</pattern>
<pattern>${ERROR_LOG_PATTERN}</pattern>
</layout>
<username>Server-Error</username>
<iconEmoji>:rotating_light:</iconEmoji>
Expand Down

0 comments on commit c28f5f9

Please sign in to comment.