Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
PM2 watcher
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nico Baruna Putra
PM2 watcher
Commits
4743f5a0
Commit
4743f5a0
authored
Aug 05, 2024
by
Nico Baruna Putra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete banner
parent
ccfcfd9a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
index.go
index.go
+3
-3
main.exe
tmp/main.exe
+0
-0
No files found.
index.go
View file @
4743f5a0
...
...
@@ -29,7 +29,7 @@ func sendMail(errorMsg string) {
fmt
.
Println
(
"Try sending email to "
+
CONFIG_SENDER_NAME
)
m
:=
gomail
.
NewMessage
()
m
.
SetHeader
(
"From"
,
"nico.baruna@gmail.com"
)
m
.
SetHeader
(
"To"
,
"nico.baruna@gmail.com"
,
"nico_putra@banpuindo.co.id"
,
"manandit@gmail.com"
)
m
.
SetHeader
(
"To"
,
"nico.baruna@gmail.com"
,
"nico_putra@banpuindo.co.id"
)
//m.SetAddressHeader("Cc", "dan@example.com", "Dan")
m
.
SetHeader
(
"Subject"
,
"Error found in Chat BE UAT!"
)
m
.
SetBody
(
"text/html"
,
"Hello <b>Nico</b> ! we found and error "
+
errorMsg
)
...
...
@@ -54,7 +54,7 @@ func banner() {
}
func
main
()
{
banner
()
//
banner()
//readFile(MYFILE)
checkApi
()
for
range
time
.
Tick
(
time
.
Second
*
10
)
{
...
...
@@ -71,7 +71,7 @@ func checkApi() {
fmt
.
Println
(
"ERROR NIH BOS!, KONEKSI PUTUS , KEMUNGKINAN SERVICE MATI"
)
Native
()
fmt
.
Print
(
err
.
Error
())
//
sendMail("API not response")
sendMail
(
"API not response"
)
//os.Exit(1)
}
else
if
response
.
StatusCode
!=
200
{
fmt
.
Println
(
"ERROR NIH BOS!, API Tidak MERESPONS, STATUSNYA : "
)
...
...
tmp/main.exe
View file @
4743f5a0
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment