Skip to content

Commit

Permalink
remove debug spam
Browse files Browse the repository at this point in the history
  • Loading branch information
AriehSchneier committed Nov 19, 2024
1 parent 9ea8e13 commit 525327c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
12 changes: 0 additions & 12 deletions cmd/sysl/cmd_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ func (r *cmdRunner) Run(which string, fs afero.Fs, logger *logrus.Logger, stdin

if r.CloneVersion != "" {
fs, gitRoot, err = r.getClonedRepo(fs)
fmt.Println("cloned: ", fs.Name(), " ", gitRoot, " ", err)
info, iErr := fs.Stat("Makefile")
fmt.Printf("Makefile stat: %s %t %s\n", info.Name(), info.IsDir(), iErr)
info, iErr = fs.Stat("tests/args.sysl")
fmt.Printf("tests/args.sysl stat: %s %t %s\n", info.Name(), info.IsDir(), iErr)
if err != nil {
return err
}
Expand All @@ -68,13 +63,7 @@ func (r *cmdRunner) Run(which string, fs afero.Fs, logger *logrus.Logger, stdin
if cmd.MaxSyslModule() > 0 {
if len(r.modules) > 0 {
if r.CloneVersion != "" {
fmt.Println("loading from clone: ", gitRoot)
modules, err = r.loadFromClone(fs, gitRoot)
if err != nil {
fmt.Println("res: ", err.Error())
} else {
fmt.Println("res: success")
}
} else {
modules, err = r.loadFromModules(fs, logger)
}
Expand Down Expand Up @@ -286,7 +275,6 @@ func (r *cmdRunner) loadFromClone(fs afero.Fs, gitRoot string) ([]*sysl.Module,

modelParser := parse.NewParser()
modelParser.Set(r.parseSettings)
fmt.Println("modelParser.ParseFromFs: ", moduleName)
mod, err := modelParser.ParseFromFs(moduleName, fs)
if err != nil {
return nil, err
Expand Down
9 changes: 0 additions & 9 deletions pkg/parse/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ func (p *Parser) ParseFromFs(filename string, fs afero.Fs) (*sysl.Module, error)
if err != nil {
return nil, err
}
fmt.Println("ParseFromFs: ", filename, ", ", path.Clean(filename))
return p.Parse(path.Clean(filename), r)
}

Expand Down Expand Up @@ -431,15 +430,8 @@ func (p *Parser) collectSpecs(
retrieved.l[filenameIndex] = fi
retrieved.mutex.Unlock()

fmt.Println("reader.ReadHashBranch", source.filename)
content, hash, branch, err := reader.ReadHashBranch(ctx, source.filename)
if err != nil {
fmt.Println("reader.ReadHashBranch failed: ", err)
info, iErr := reader.Stat("tests/apps_namespaces.sysl")
fmt.Println("tests stat tests/apps_namespaces.sysl: ", info, " ", iErr)
f := "tests" + string(os.PathSeparator) + "apps_namespaces.sysl"
info, iErr = reader.Stat(f)
fmt.Println("tests stat ", f, ": ", info, " ", iErr)
return syslutil.Exitf(ImportError, fmt.Sprintf(
"error reading %#v: \n%v\n", source.filename, err,
))
Expand Down Expand Up @@ -474,7 +466,6 @@ func (p *Parser) collectSpecs(

err = g.Wait()
if err != nil {
fmt.Println("collectSpecs failed: ", err)
return syslutil.Exitf(ImportError, fmt.Sprintf(
"error reading %#v: \n%v", source.filename, err,
))
Expand Down

0 comments on commit 525327c

Please sign in to comment.