1. 07 2月, 2016 2 次提交
  2. 02 2月, 2016 4 次提交
  3. 29 1月, 2016 1 次提交
  4. 24 1月, 2016 3 次提交
  5. 08 1月, 2016 1 次提交
  6. 06 1月, 2016 2 次提交
    • S
      [close #22917] Don't output to `STDOUT` twice · 3d10d9d6
      schneems 提交于
      When `rails console` or `rails server` are used along with a logger set to output to `STDOUT` then the contents will show up twice. This happens because the logger is extended with `ActiveSupportLogger.broadcast` with a destination of STDOUT even if it is already outputting to `STDOUT`.
      
      Previously PR #22592 attempted to fix this issue, but it ended up causing NoMethodErrors. A better approach than relying on adding a method and flow control is to inspect the log destination directly. For this `ActiveSupport::Logger.logger_outputs_to?` was introduced
      
      ```ruby
      logger = Logger.new(STDOUT)
      ActiveSupport::Logger.logger_outputs_to?(logger, STDOUT)
      # => true
      ```
      
      To accomplish this we must look inside of an instance variable of standard lib's Logger `@logdev`. There is a related Ruby proposal to expose this method in a standard way: https://bugs.ruby-lang.org/issues/11955
      3d10d9d6
    • S
      Revert "Add Logger option to disable message broadcasts" · 9dcb1b9b
      schneems 提交于
      This reverts related commits due to #22917.
      9dcb1b9b
  7. 31 12月, 2015 1 次提交
  8. 29 12月, 2015 2 次提交
  9. 24 12月, 2015 1 次提交
    • C
      Fixes LoggerSilence#silence threadsafety · 629efb60
      Carl P. Corliss 提交于
      - uses instance defined level if no custom local log level defined
      - Keeps track of local log level per [ thread + object-instance ]
      - prevents memory leakage by removing local level hash key/value on #silence method exit
      - avoids the use of Thread local variables
      629efb60
  10. 23 12月, 2015 1 次提交
  11. 20 12月, 2015 1 次提交
  12. 19 12月, 2015 1 次提交
  13. 18 12月, 2015 2 次提交
    • E
      Fix test that fails in isolation · eac2eea3
      eileencodes 提交于
      This test needs to have a require for the Listen gem or else it returns
      an error when run by itself or with a certain order in the Active
      Support tests. We use `silence_warnings` because Listen has some
      warnings about private methods. It's already silenced when it's required
      in Active Support EventedFileUpdateChecker.
      
      ```
      1) Error:
      EventedFileUpdateCheckerTest#test_should_not_execute_the_block_if_no_paths_are_given:
      NameError: uninitialized constant EventedFileUpdateCheckerTest::Listen
          test/evented_file_update_checker_test.rb:21:in `teardown'
      ```
      eac2eea3
    • E
      Delete duplicate test · 65146b58
      eileencodes 提交于
      The test was was in here twice so we were seeing this error:
      
      ```
      activesupport/test/caching_test.rb:658:
      warning: method redefined; discarding old test_local_cache_of_read_nil
      activesupport/test/caching_test.rb:634:
      warning: previous definition of test_local_cache_of_read_nil was here
      ```
      65146b58
  14. 17 12月, 2015 4 次提交
  15. 16 12月, 2015 1 次提交
  16. 09 12月, 2015 1 次提交
  17. 03 12月, 2015 1 次提交
  18. 30 11月, 2015 1 次提交
  19. 28 11月, 2015 1 次提交
    • T
      Subscribing to notifications while inside the said instrumented section. · ab3c4a40
      thedarkone 提交于
      The issue is that on the exit from Instrumenter#instrument section,
      an Evented listener will run into an error because its thread local
      (Thread.current[:_timestack]) has not been set up by the #start
      method (this obviously happens because the Evented listeners didn't
      exist at the time, since no subscribtion to that section was made yet).
      
      Note: support for subscribing to instrumented sections, while being
      inside those instrumented sections, might be removed in the future.
      
      Maybe fixes #21873.
      ab3c4a40
  20. 27 11月, 2015 2 次提交
  21. 26 11月, 2015 1 次提交
    • G
      Only run listen tests in isolation, for now · 71ffd9b5
      Godfrey Chan 提交于
      There is a known issue with the listen tests that casuses files to be
      incorrectly GC'ed even when they are still in-use. The current is to
      only run them in isolation to avoid randomly failing our test suite.
      71ffd9b5
  22. 25 11月, 2015 1 次提交
    • W
      Remove unused code · 95d05972
      Will Jessop 提交于
      Looking at the history of this file it seems this code was never actually used.
      95d05972
  23. 20 11月, 2015 1 次提交
  24. 13 11月, 2015 1 次提交
  25. 12 11月, 2015 1 次提交
  26. 11 11月, 2015 2 次提交