From d04d35ff2868111948b58bcc893e1d1d719b3ac5 Mon Sep 17 00:00:00 2001 From: Ivan Milchev Date: Tue, 19 Mar 2024 13:55:55 +0100 Subject: [PATCH] fix upstream scans (#3601) Signed-off-by: Ivan Milchev --- explorer/scan/local_scanner.go | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/explorer/scan/local_scanner.go b/explorer/scan/local_scanner.go index 6a0a450511..4fba233ba6 100644 --- a/explorer/scan/local_scanner.go +++ b/explorer/scan/local_scanner.go @@ -641,16 +641,13 @@ func (s *localAssetScanner) runQueryPack() (*AssetReport, error) { var conductor explorer.QueryConductor = s.services log.Debug().Str("asset", s.job.Asset.Mrn).Msg("client> request bundle for asset") - // If we run in debug mode, download the asset bundle and dump it to disk - if val, ok := os.LookupEnv("DEBUG"); ok && (val == "1" || val == "true") { - assetBundle, err := hub.GetBundle(s.job.Ctx, &explorer.Mrn{Mrn: s.job.Asset.Mrn}) - if err != nil { - return nil, err - } - log.Debug().Msg("client> got bundle") - logger.TraceJSON(assetBundle) - logger.DebugDumpJSON("assetBundle", assetBundle) + assetBundle, err := hub.GetBundle(s.job.Ctx, &explorer.Mrn{Mrn: s.job.Asset.Mrn}) + if err != nil { + return nil, err } + log.Debug().Msg("client> got bundle") + logger.TraceJSON(assetBundle) + logger.DebugDumpJSON("assetBundle", assetBundle) rawFilters, err := hub.GetFilters(s.job.Ctx, &explorer.Mrn{Mrn: s.job.Asset.Mrn}) if err != nil {