Skip to content

Commit

Permalink
chore: change terminology from via regex to via route
Browse files Browse the repository at this point in the history
  • Loading branch information
robertstojs committed Jan 18, 2024
1 parent d9b8be7 commit 6dd5b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func redirectHandler(w http.ResponseWriter, r *http.Request) {
}
if matched {
http.Redirect(w, r, mapping.OriginalURL, http.StatusFound)
logMessage := fmt.Sprintf("Redirected via regex '%s' to '%s' using pattern '%s'", requestedURL, mapping.OriginalURL, mapping.RegexPattern)
logMessage := fmt.Sprintf("Redirected via route '%s' to '%s' using pattern '%s'", requestedURL, mapping.OriginalURL, mapping.RegexPattern)
log.Println(logMessage)
sysLogger.Info(logMessage)
return
Expand Down

0 comments on commit 6dd5b69

Please sign in to comment.