Skip to content

Commit 41b91ff

Browse files
author
Andreas Sacher
committed
TASK: add more logging
1 parent 0341290 commit 41b91ff

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

flowpathmapper/flowpathmapper.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ func (p *PathMapper) mapPath(originalPath string) string {
159159
}
160160
if err == nil {
161161
return p.setPathMapping(realPath, originalPath)
162+
} else if p.config.Debug {
163+
p.logger.Debug("Path %s not found on disk, return original path", realPath)
162164
}
163165
}
164166

main.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,16 @@ func main() {
9191
os.Exit(1)
9292
}
9393

94-
log.Info("Debugger from %v\nIDE from %v\n", laddr, raddr)
94+
log.Info("Debugger from %v", laddr)
95+
log.Info("IDE from %v", raddr)
96+
if c.Verbose {
97+
log.Info("Context %v", c.Context)
98+
log.Info("Framework %v", c.Framework)
99+
log.Info("Local Root %v", c.LocalRoot)
100+
log.Info("Verbose %v", c.Verbose)
101+
log.Info("Very Verbose %v", c.VeryVerbose)
102+
log.Info("Debug %v", c.Debug)
103+
}
95104

96105
pathMapping := &pathmapping.PathMapping{}
97106
pathMapper, err := pathmapperfactory.Create(c, pathMapping, log)

0 commit comments

Comments
 (0)