Skip to content

Commit a017437

Browse files
committed
remove needless logs
1 parent d5c4bfa commit a017437

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

internal/config/types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,14 +437,12 @@ func (c *Config) AreReceiversConfigured() bool {
437437
// It also checks if the path is a file, in which case it checks the directory of the file.
438438
func isAllowedDir(path string, allowedDirs []string) (bool, error) {
439439
if len(allowedDirs) == 0 {
440-
slog.Warn("No allowed directories configured")
441440
return false, errors.New("no allowed directories configured")
442441
}
443442

444443
directoryPath := path
445444
isFilePath, err := regexp.MatchString(`\.(\w+)$`, directoryPath)
446445
if err != nil {
447-
slog.Error("Error matching path", "path", directoryPath, "error", err)
448446
return false, errors.New("error matching path" + directoryPath)
449447
}
450448

0 commit comments

Comments
 (0)