lib/zold/verbose_thread.rb in zold-0.31.5 vs lib/zold/verbose_thread.rb in zold-0.31.6

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -# Copyright (c) 2018-2023 Zerocracy, Inc. +# Copyright (c) 2018-2023 Zerocracy # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -34,10 +34,10 @@ class VerboseThread def initialize(log = Log::NULL) @log = log end - def run(safe = false) + def run(safe: false) Thread.current.report_on_exception = false yield rescue Errno::ENOMEM => e @log.error(Backtrace.new(e).to_s) @log.error("We are too big in memory (#{Size.new(GetProcessMem.new.bytes.to_i)}), quitting; \