mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 07:29:00 -08:00
feat: add log.FilePath() function for logger (#7080)
This commit is contained in:
@@ -445,7 +445,7 @@ func (m *wasmModule) Required(filePath string, _ os.FileInfo) bool {
|
||||
|
||||
func (m *wasmModule) Analyze(ctx context.Context, input analyzer.AnalysisInput) (*analyzer.AnalysisResult, error) {
|
||||
filePath := "/" + filepath.ToSlash(input.FilePath)
|
||||
log.Debug("Module analyzing...", log.String("module", m.name), log.String("file_path", filePath))
|
||||
log.Debug("Module analyzing...", log.String("module", m.name), log.FilePath(filePath))
|
||||
|
||||
// Wasm module instances are not Goroutine safe, so we take look here since Analyze might be called concurrently.
|
||||
// TODO: This is temporary solution and we could improve the Analyze performance by having module instance pool.
|
||||
|
||||
Reference in New Issue
Block a user