mirror of
https://github.com/pushbits/server.git
synced 2025-05-01 19:26:41 +02:00
Add application IDs to debugging output
This commit is contained in:
parent
af3b21523f
commit
47fd9441cd
2 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ func (h *ApplicationHandler) createApplication(ctx *gin.Context, name string, u
|
|||
}
|
||||
|
||||
func (h *ApplicationHandler) deleteApplication(ctx *gin.Context, a *model.Application, u *model.User) error {
|
||||
log.Printf("Deleting application %s.\n", a.Name)
|
||||
log.Printf("Deleting application %s (ID %d).\n", a.Name, a.ID)
|
||||
|
||||
err := h.DP.DeregisterApplication(a, u)
|
||||
if success := successOrAbort(ctx, http.StatusInternalServerError, err); !success {
|
||||
|
|
|
@ -36,7 +36,7 @@ func (d *Dispatcher) RegisterApplication(id uint, name, token, user string) (str
|
|||
|
||||
// DeregisterApplication deletes a channel for an application.
|
||||
func (d *Dispatcher) DeregisterApplication(a *model.Application, u *model.User) error {
|
||||
log.Printf("Deregistering application with ID %s.\n", a.MatrixID)
|
||||
log.Printf("Deregistering application %s (ID %d) with Matrix ID %s.\n", a.Name, a.ID, a.MatrixID)
|
||||
|
||||
kickUser := &gomatrix.ReqKickUser{
|
||||
Reason: "This application was deleted",
|
||||
|
|
Loading…
Add table
Reference in a new issue