additional debug logging, use mapper pointer

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2023-07-24 08:58:51 +02:00 committed by Kristoffer Dalby
parent eff529f2c5
commit e0ba325b3b
9 changed files with 69 additions and 16 deletions

View file

@ -364,7 +364,7 @@ func (t *HeadscaleInContainer) SaveProfile(savePath string) error {
}
err = os.WriteFile(
path.Join(savePath, t.hostname+"maps.tar"),
path.Join(savePath, t.hostname+".pprof.tar"),
tarFile,
os.ModePerm,
)
@ -382,7 +382,7 @@ func (t *HeadscaleInContainer) SaveMapResponses(savePath string) error {
}
err = os.WriteFile(
path.Join(savePath, t.hostname+".pprof.tar"),
path.Join(savePath, t.hostname+".maps.tar"),
tarFile,
os.ModePerm,
)