mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update logger
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
package telegram
|
||||
|
||||
import (
|
||||
"log/slog"
|
||||
"path/filepath"
|
||||
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/usememos/memos/internal/log"
|
||||
)
|
||||
|
||||
type Attachment struct {
|
||||
@@ -29,9 +26,7 @@ func (b Attachment) GetMimeType() string {
|
||||
|
||||
mime, ok := mimeTypes[filepath.Ext(b.FileName)]
|
||||
if !ok {
|
||||
// Handle unknown file extension
|
||||
log.Warn("Unknown file type for ", zap.String("filename", b.FileName))
|
||||
|
||||
slog.Warn("Unknown file extension", slog.String("file", b.FileName))
|
||||
return "application/octet-stream"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user