aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2021-08-20 17:51:16 +0200
committerQuentin <quentin@deuxfleurs.fr>2021-08-20 17:51:16 +0200
commit5d64be33e64eb75160b6fe37b01997de7e96237a (patch)
tree7ba352235b09e32ee4270ebd7854510955be24d9
parentbe17ee5a405ceb3945cbaddffb5659e0e6cacdda (diff)
downloadbagage-5d64be33e64eb75160b6fe37b01997de7e96237a.tar.gz
bagage-5d64be33e64eb75160b6fe37b01997de7e96237a.zip
Hide debug logs for now
-rw-r--r--main.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.go b/main.go
index 79ef4df..70f2251 100644
--- a/main.go
+++ b/main.go
@@ -173,7 +173,7 @@ func (s *GarageFS) Mkdir(ctx context.Context, name string, perm os.FileMode) err
}
func (s *GarageFS) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (webdav.File, error) {
- log.Println("Stat from GarageFS.OpenFile()", name)
+ //log.Println("Stat from GarageFS.OpenFile()", name)
NewGarageStatFromFile(ctx, name)
return NewGarageFile(ctx, name)
}
@@ -187,7 +187,7 @@ func (s *GarageFS) Rename(ctx context.Context, oldName, newName string) error {
}
func (s *GarageFS) Stat(ctx context.Context, name string) (os.FileInfo, error) {
- log.Println("Stat from GarageFS.Stat()", name)
+ //log.Println("Stat from GarageFS.Stat()", name)
return NewGarageStat(ctx, name)
}
@@ -322,7 +322,7 @@ func (gf *GarageFile) readDirRoot(count int) ([]fs.FileInfo, error) {
entries := make([]fs.FileInfo, 0, len(buckets))
for _, bucket := range buckets {
- log.Println("Stat from GarageFile.readDirRoot()", "/"+bucket.Name)
+ //log.Println("Stat from GarageFile.readDirRoot()", "/"+bucket.Name)
ngf, err := NewGarageStat(gf.ctx, "/"+bucket.Name)
if err != nil {
return nil, err
@@ -349,7 +349,7 @@ func (gf *GarageFile) readDirChild(count int) ([]fs.FileInfo, error) {
if object.Err != nil {
return nil, object.Err
}
- log.Println("Stat from GarageFile.readDirChild()", path.Join("/", gf.path.bucket, object.Key))
+ //log.Println("Stat from GarageFile.readDirChild()", path.Join("/", gf.path.bucket, object.Key))
ngf, err := NewGarageStatFromObjectInfo(gf.ctx, gf.path.bucket, object)
if err != nil {
return nil, err
@@ -361,7 +361,7 @@ func (gf *GarageFile) readDirChild(count int) ([]fs.FileInfo, error) {
}
func (gf *GarageFile) Stat() (fs.FileInfo, error) {
- log.Println("Stat from GarageFile.Stat()", gf.path.path)
+ //log.Println("Stat from GarageFile.Stat()", gf.path.path)
return NewGarageStatFromFile(gf.ctx, gf.path.path)
}