1. 12 Feb, 2020 4 commits
  2. 08 Jan, 2020 1 commit
  3. 22 Oct, 2019 2 commits
  4. 17 Oct, 2019 1 commit
    • Nick Mathewson's avatar
      Replace add_temp_log() with add_default_log(). · 3a73f661
      Nick Mathewson authored
      We used to have this function so that we could mark our initial
      log-to-stdout as specifically temporary so that we would delete it
      once regular logs were configured.  But it's no longer necessary to
      mark these logs as temporary, since we now use a mark-and-sweep
      process to ensure that _all_ not-configured logs are closed when we
      change our configuration.
      
      Instead, this function will be the basis of a refactoring in how we
      handle default logs.
      3a73f661
  5. 02 Oct, 2019 1 commit
  6. 30 Sep, 2019 4 commits
  7. 26 Sep, 2019 1 commit
    • teor's avatar
      log: explain why it is safe to leave the log mutex initialized · 749c2e17
      teor authored
      The log mutex is dynamically initialized, guarded by log_mutex_initialized.
      We don't want to destroy it, because after it is destroyed, we won't see
      any more logs.
      
      If tor is re-initialized, log_mutex_initialized will still be 1. So we
      won't trigger any undefined behaviour by trying to re-initialize the
      log mutex.
      
      Part of 31736, but committed in this branch to avoid merge conflicts.
      749c2e17
  8. 25 Sep, 2019 1 commit
    • teor's avatar
      log: Move SEVERITY_MASK_IDX() to log.h · 1ad1e84b
      teor authored
      Move SEVERITY_MASK_IDX() to log.h private/unit tests section, so that
      we can use it in log.c, the unit tests, and the fuzzers.
      
      (The test and fuzzer code changes are in a subsequent commit.)
      
      Preparation for bug 31334.
      1ad1e84b
  9. 24 Sep, 2019 1 commit
  10. 09 Sep, 2019 2 commits
  11. 05 Sep, 2019 1 commit
  12. 19 Aug, 2019 1 commit
    • Nick Mathewson's avatar
      Fix 64-bit return issue in parse_log_domain() · 87a3c5b1
      Nick Mathewson authored
      If unsigned int is 32-bits long, then our old code would give a
      wrong result with any log domain whose mask was >= (1<<32).
      Fortunately, there are no such log domains right now: the domain
      mask is only 64 bits long to accommodate some flags.
      
      Found by coverity as CID 1452041.
      
      Fixes bug 31451; bugfix on 0.4.1.4-rc.
      87a3c5b1
  13. 24 Jul, 2019 1 commit
  14. 08 Jul, 2019 1 commit
  15. 05 Jun, 2019 1 commit
  16. 25 Mar, 2019 1 commit
  17. 16 Jan, 2019 2 commits
  18. 21 Dec, 2018 1 commit
  19. 17 Dec, 2018 1 commit
  20. 27 Nov, 2018 1 commit
  21. 05 Nov, 2018 2 commits
  22. 11 Jul, 2018 1 commit
  23. 10 Jul, 2018 3 commits
  24. 27 Jun, 2018 1 commit
  25. 26 Jun, 2018 1 commit
    • Nick Mathewson's avatar
      Extract core part of smartlist code into its own library. · b1de1e7a
      Nick Mathewson authored
      The smartlist_core library now contains only the parts of smartlists
      that are needed for the logging library.  This resolves the
      circularity between "container" and "log".
      
      The "containers" library still uses the logging code, and has the
      higher-level smartlist functions.
      b1de1e7a
  26. 22 Jun, 2018 3 commits