mirror of
https://github.com/pushbits/server.git
synced 2025-06-01 10:12:02 +02:00
use internal log package
This commit is contained in:
parent
9fecabf1f7
commit
5001bd5b5f
1 changed files with 2 additions and 2 deletions
|
@ -1,13 +1,13 @@
|
|||
package alertmanager
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
"net/url"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/pushbits/server/internal/api"
|
||||
"github.com/pushbits/server/internal/authentication"
|
||||
"github.com/pushbits/server/internal/log"
|
||||
"github.com/pushbits/server/internal/model"
|
||||
)
|
||||
|
||||
|
@ -35,7 +35,7 @@ type AlertmanagerHandlerSettings struct {
|
|||
// @Router /alert [post]
|
||||
func (h *AlertmanagerHandler) CreateAlert(ctx *gin.Context) {
|
||||
application := authentication.GetApplication(ctx)
|
||||
log.Printf("Sending alert notification for application %s.", application.Name)
|
||||
log.L.Printf("Sending alert notification for application %s.", application.Name)
|
||||
|
||||
var hook model.AlertmanagerWebhook
|
||||
if err := ctx.Bind(&hook); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue