# frozen_string_literal: true %w[ version logger errors build_bundler_definition commands config configs/fetcher configs/validator handle_errors/messages handle_errors/build_exception_payload handle_errors/display_to_stdout handle_errors/report request_object request local_context/diffend local_context/host local_context/packages local_context/platform local_context request_verdict execute track ].each { |file| require "diffend/#{file}" } begin config = Diffend::Config.new( command: Diffend::Commands::EXEC, severity: Diffend::Logger::FATAL ) rescue Diffend::Errors::HandledException # we silent exit here because we don't want to break client boot return end return if %w[development test].include?(config.env) Thread.new do track = Diffend::Track.new(config) track.start end