Skip to content

Commit 403ab19

Browse files
committed
Changed log.Warn to log.Fatal
Signed-off-by: aryans1204 <arshar1204@gmail.com>
1 parent c1cc6df commit 403ab19

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/trace/mapper_trace_parser.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,20 @@ func (p *MapperTraceParser) Parse() []*common.Function {
8383
wd, _ := os.Getwd()
8484
deploymentInfoFile, err = os.ReadFile(wd + "/workloads/container/yamls/deploy_info.json")
8585
if err != nil {
86-
log.Warn("No deployment info file")
86+
log.Fatal("No deployment info file")
8787
}
8888
}
8989

9090
err = json.Unmarshal(deploymentInfoFile, &deploymentInfo)
9191
if err != nil {
92-
log.Warn("Failed to unmarshal deployment info file")
92+
log.Fatal("Failed to unmarshal deployment info file")
9393
}
9494

9595
mapperFile, err := os.ReadFile(p.DirectoryPath + "/mapper_output.json")
9696
if err != nil {
9797
traces, err := os.ReadDir(p.DirectoryPath)
9898
if err != nil {
99-
log.Warn("No mapper output file")
99+
log.Fatal("No mapper output file")
100100
}
101101

102102
for _, trace := range traces {
@@ -108,7 +108,7 @@ func (p *MapperTraceParser) Parse() []*common.Function {
108108
}
109109
err = json.Unmarshal(mapperFile, &mapperOutput)
110110
if err != nil {
111-
log.Warn("Failed to unmarshal mapper output file")
111+
log.Fatal("Failed to unmarshal mapper output file")
112112
}
113113
result := p.extractFunctions(mapperOutput, deploymentInfo, p.DirectoryPath+"/"+traceName)
114114
functions = append(functions, result...)
@@ -119,7 +119,7 @@ func (p *MapperTraceParser) Parse() []*common.Function {
119119

120120
err = json.Unmarshal(mapperFile, &mapperOutput)
121121
if err != nil {
122-
log.Warn("Failed to unmarshal mapper output file")
122+
log.Fatal("Failed to unmarshal mapper output file")
123123
}
124124

125125
functions = p.extractFunctions(mapperOutput, deploymentInfo, p.DirectoryPath)

0 commit comments

Comments
 (0)