Skip to content

Commit

Permalink
common/alarm: fix emoji to check
Browse files Browse the repository at this point in the history
  • Loading branch information
kreatoo committed Aug 27, 2024
1 parent 7ea4c94 commit c65a24b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
mono-go
monokit
bin
2 changes: 1 addition & 1 deletion common/alarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func AlarmCheckUp(service string, message string) {
// Remove slashes from service and replace them with -
serviceReplaced := strings.Replace(service, "/", "-", -1)
file_path := TmpDir + "/" + serviceReplaced + ".log"
messageFinal := "[" + ScriptName + " - " + Config.Identifier + "] [:red_circle:] " + message
messageFinal := "[" + ScriptName + " - " + Config.Identifier + "] [:check:] " + message

// Check if the file exists, send alarm and remove file if it does
if _, err := os.Stat(file_path); err == nil {
Expand Down

0 comments on commit c65a24b

Please sign in to comment.