Skip to content

Commit 47bb490

Browse files
authored
Merge pull request #206 from nicholasSUSE/less-logs
Diminishing amount of logs
2 parents 1636e69 + bb02b26 commit 47bb490

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/filesystem/filesystem.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -691,8 +691,6 @@ func CompareDirs(ctx context.Context, fs billy.Filesystem, leftDirpath, rightDir
691691

692692
// GetRootPath returns the first directory in a given path
693693
func GetRootPath(ctx context.Context, path string) (string, error) {
694-
logger.Log(ctx, slog.LevelDebug, "get root path", slog.String("path", path))
695-
696694
rootPathList := strings.SplitN(path, "/", 2)
697695
if len(rootPathList) == 0 {
698696
return "", fmt.Errorf("unable to get root path of %s", path)
@@ -702,8 +700,6 @@ func GetRootPath(ctx context.Context, path string) (string, error) {
702700

703701
// MovePath takes a path that is contained within fromDir and returns the same path contained within toDir
704702
func MovePath(ctx context.Context, path string, fromDir string, toDir string) (string, error) {
705-
logger.Log(ctx, slog.LevelDebug, "moving path", slog.String("path", path))
706-
707703
if !strings.HasPrefix(path, fromDir) {
708704
return "", fmt.Errorf("path %s does not contain directory %s", path, fromDir)
709705
}

0 commit comments

Comments
 (0)