From 99d02caed3fb86a8bbe3ae6daddf2517e2f3f441 Mon Sep 17 00:00:00 2001 From: Jesse Chavez Date: Wed, 26 Jan 2022 14:05:21 -0500 Subject: [ruby/logger] Fix log rotation inter-process lock failed. Issue only occurs in JRuby 9.3.0.0 and Windows and the full console output is: log rotation inter-process lock failed. D:\log.txt -> D:\log.txt.0: The process cannot access the file because it is being used by another process. log writing failed. closed stream log writing failed. closed stream ... https://github.com/ruby/logger/commit/19fc734638 --- lib/logger.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/logger.rb') diff --git a/lib/logger.rb b/lib/logger.rb index 4205380a6a..7d55f62f30 100644 --- a/lib/logger.rb +++ b/lib/logger.rb @@ -11,6 +11,7 @@ # A simple system for logging messages. See Logger for more documentation. require 'monitor' +require 'rbconfig' require_relative 'logger/version' require_relative 'logger/formatter' -- cgit v1.2.3