lib/eco/api/usecases/graphql/samples/location/command/service/tree_update.rb in eco-helpers-2.7.4 vs lib/eco/api/usecases/graphql/samples/location/command/service/tree_update.rb in eco-helpers-2.7.12
- old
+ new
@@ -80,9 +80,11 @@
true
end
def email_digest(title)
return if simulate?
+ return if options.dig(:workflow, :no_email)
+
digest_msgs = logger.cache.logs(level: %i[info error warn])
exception = exception ? " - Exception!" : ''
subject = "#{config.active_enviro} - #{title}#{exception}"
session.mail(subject: subject, body: digest_msgs.join)
end