Skip to content

Commit

Permalink
fix(job.go): continue with error log if parse conn fails
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurzenika committed Mar 21, 2024
1 parent 45fb450 commit 7f3fd7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion job.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ func (j *Job) updateConnections() {
// FIXME - parsing twice the conn url to extract host & username
u, err := url.Parse(conn)
if err != nil {
panic(err)
level.Error(j.log).Log("msg", "Failed to parse URL", "url", conn, "err", err)
continue
}
region := os.Getenv("AWS_REGION")
sess := session.Must(session.NewSessionWithOptions(session.Options{
Expand Down

0 comments on commit 7f3fd7a

Please sign in to comment.