Skip to content

Commit 469e0a1

Browse files
committed
Update v4.7.0
1 parent ee467da commit 469e0a1

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

core/parse.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ func ParseInput(raw string, options libs.Options) map[string]string {
179179
/* --- start to load default Env --- */
180180
// ~/osmedeus-base
181181
ROptions["BaseFolder"] = utils.NormalizePath(strings.TrimLeft(options.Env.BaseFolder, "/"))
182-
// ROptions["Plugins"] = options.Env.BinariesFolder
183182
ROptions["Binaries"] = options.Env.BinariesFolder
184183

185184
ROptions["Backup"] = options.Env.BackupFolder
@@ -201,6 +200,9 @@ func ParseInput(raw string, options libs.Options) map[string]string {
201200
}
202201
ROptions["Output"] = path.Join(ROptions["Workspaces"], ROptions["Workspace"])
203202

203+
ROptions["ExecutionLog"] = path.Join(ROptions["Output"], "execution.log")
204+
ROptions["LogFile"] = options.LogFile
205+
204206
// params in workflow file
205207
if len(options.Flow.Params) > 0 {
206208
for _, param := range options.Flow.Params {

core/runner.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,12 @@ func (r *Runner) Start() {
392392
r.RuntimeFile = r.Target["Output"] + "/runtime"
393393
r.WorkspaceFolder = r.Target["Output"]
394394

395-
// update the log file
396-
scanLogFile := r.WorkspaceFolder + "/execution.log"
397-
utils.CopyFile(r.Opt.LogFile, scanLogFile)
398-
r.Opt.LogFile = scanLogFile
399-
utils.InitLog(&r.Opt)
400-
utils.InforF("Storing the log file to: %v", color.CyanString(r.Opt.LogFile))
395+
// // update the log file
396+
// scanLogFile := r.WorkspaceFolder + "/execution.log"
397+
// utils.CopyFile(r.Opt.LogFile, scanLogFile)
398+
// r.Opt.LogFile = scanLogFile
399+
// utils.InitLog(&r.Opt)
400+
// utils.InforF("Storing the log file to: %v", color.CyanString(r.Opt.LogFile))
401401

402402
r.GenerateFlowChart()
403403
if r.Opt.Scan.DryRun {

0 commit comments

Comments
 (0)