1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-03-10 13:38:20 +00:00

37 lines
858 B
Go
Raw Permalink Normal View History

2021-02-20 19:03:54 +05:00
package shroom
import (
"log/slog"
"github.com/bouncepaw/mycorrhiza/internal/hyphae"
"github.com/bouncepaw/mycorrhiza/internal/user"
2021-02-20 19:03:54 +05:00
)
2022-02-19 11:26:38 +03:00
func rejectRenameLog(h hyphae.Hypha, u *user.User, errmsg string) {
slog.Info("Reject rename",
"hyphaName", h.CanonicalName(),
"username", u.Name,
"errmsg", errmsg)
2021-02-20 19:03:54 +05:00
}
2022-02-26 10:33:09 +03:00
func rejectRemoveMediaLog(h hyphae.Hypha, u *user.User, errmsg string) {
slog.Info("Reject remove media",
"hyphaName", h.CanonicalName(),
"username", u.Name,
"errmsg", errmsg)
2021-02-20 19:03:54 +05:00
}
2022-02-19 11:26:38 +03:00
func rejectEditLog(h hyphae.Hypha, u *user.User, errmsg string) {
slog.Info("Reject edit",
"hyphaName", h.CanonicalName(),
"username", u.Name,
"errmsg", errmsg)
2021-02-20 19:03:54 +05:00
}
2022-02-26 10:33:09 +03:00
func rejectUploadMediaLog(h hyphae.Hypha, u *user.User, errmsg string) {
slog.Info("Reject upload media",
"hyphaName", h.CanonicalName(),
"username", u.Name,
"errmsg", errmsg)
2021-02-20 19:03:54 +05:00
}