2021-02-20 19:03:54 +05:00
|
|
|
package shroom
|
|
|
|
|
|
|
|
import (
|
2024-09-07 23:55:39 +03:00
|
|
|
"log/slog"
|
|
|
|
|
2024-09-07 21:22:41 +03:00
|
|
|
"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) {
|
2024-09-07 23:55:39 +03:00
|
|
|
slog.Info("Reject rename",
|
|
|
|
"hyphaName", h.CanonicalName(),
|
|
|
|
"username", u.Name,
|
|
|
|
"errmsg", errmsg)
|
2021-02-20 19:03:54 +05:00
|
|
|
}
|
2024-09-07 23:55:39 +03:00
|
|
|
|
2022-02-26 10:33:09 +03:00
|
|
|
func rejectRemoveMediaLog(h hyphae.Hypha, u *user.User, errmsg string) {
|
2024-09-07 23:55:39 +03:00
|
|
|
slog.Info("Reject remove media",
|
|
|
|
"hyphaName", h.CanonicalName(),
|
|
|
|
"username", u.Name,
|
|
|
|
"errmsg", errmsg)
|
2021-02-20 19:03:54 +05:00
|
|
|
}
|
2024-09-07 23:55:39 +03:00
|
|
|
|
2022-02-19 11:26:38 +03:00
|
|
|
func rejectEditLog(h hyphae.Hypha, u *user.User, errmsg string) {
|
2024-09-07 23:55:39 +03:00
|
|
|
slog.Info("Reject edit",
|
|
|
|
"hyphaName", h.CanonicalName(),
|
|
|
|
"username", u.Name,
|
|
|
|
"errmsg", errmsg)
|
2021-02-20 19:03:54 +05:00
|
|
|
}
|
2024-09-07 23:55:39 +03:00
|
|
|
|
2022-02-26 10:33:09 +03:00
|
|
|
func rejectUploadMediaLog(h hyphae.Hypha, u *user.User, errmsg string) {
|
2024-09-07 23:55:39 +03:00
|
|
|
slog.Info("Reject upload media",
|
|
|
|
"hyphaName", h.CanonicalName(),
|
|
|
|
"username", u.Name,
|
|
|
|
"errmsg", errmsg)
|
2021-02-20 19:03:54 +05:00
|
|
|
}
|