lib/berkeley_library/logging/logger.rb in berkeley_library-logging-0.2.6 vs lib/berkeley_library/logging/logger.rb in berkeley_library-logging-0.2.6.1
- old
+ new
@@ -1,5 +1,12 @@
-require 'active_support/isolated_execution_state'
+begin
+ # Rails 7.x LoggerThreadSafeLevel needs IsolatedExecutionState,
+ # but doesn't explicitly require it
+ require 'active_support/isolated_execution_state'
+rescue LoadError
+ # Rails 6.x doesn't
+end
+
require 'active_support/logger'
require 'ougai'
require 'berkeley_library/logging/tagged_logging_extensions'
module BerkeleyLibrary