1. 09 Jun, 2015 1 commit
  2. 21 May, 2015 1 commit
  3. 07 Nov, 2014 1 commit
    • Julien Muchembled's avatar
      logger: new RTMIN+1 signal to reopen the log · 3428da3c
      Julien Muchembled authored
      RTMIN+1 & RTMIN+2 signals, which were previously used for debugging,
      have been remapped to RTMIN+2 & RTMIN+3
      
      No journal on disk anymore because this is incompatible with the
      rename+reopen way to rotate logs, and we want to support logrotate.
      Of course in case of crash the log may be corrupt or entries may be lost,
      but we currenty don't think NEO logs would be useful to debug such failure.
      3428da3c
  4. 27 Oct, 2014 1 commit
  5. 07 Jan, 2014 1 commit
  6. 22 Aug, 2012 1 commit
  7. 20 Aug, 2012 2 commits
  8. 20 Jul, 2012 1 commit
  9. 18 Jul, 2012 1 commit
  10. 16 Jul, 2012 2 commits
    • Julien Muchembled's avatar
      New -f and -F options to 'neolog' · 9888e498
      Julien Muchembled authored
      It would be unreliable to resume printing logs using a condition on date,
      so the format of log files is changed to add primary keys that number records.
      9888e498
    • Julien Muchembled's avatar
      logger: do not leave sqlite transaction open · f77a685d
      Julien Muchembled authored
      This should fix the following failure:
      
      Traceback (most recent call last):
        File "bin/neostorage", line 23, in <module>
          neo.scripts.neostorage.main()
        File "neoppod/neo/scripts/neostorage.py", line 80, in main
          app.run()
        File "neoppod/neo/storage/app.py", line 167, in run
          logging.exception('Pre-mortem data:')
        File "/usr/lib/python2.6/logging/__init__.py", line 1088, in exception
          self.error(*((msg,) + args), **{'exc_info': 1})
        File "/usr/lib/python2.6/logging/__init__.py", line 1082, in error
          self._log(ERROR, msg, args, **kwargs)
        File "/usr/lib/python2.6/logging/__init__.py", line 1173, in _log
          self.handle(record)
        File "/usr/lib/python2.6/logging/__init__.py", line 1183, in handle
          self.callHandlers(record)
        File "neoppod/neo/lib/logger.py", line 210, in callHandlers
          self._queue(record)
        File "neoppod/neo/lib/logger.py", line 200, in _queue
          self._release()
        File "neoppod/neo/lib/logger.py", line 79, in _release
          self._async.pop()(self)
        File "neoppod/neo/lib/logger.py", line 96, in flush
          self.db.execute("BEGIN")
      sqlite3.OperationalError: cannot start a transaction within a transaction
      f77a685d
  11. 13 Jul, 2012 1 commit
  12. 21 Mar, 2012 2 commits
  13. 20 Mar, 2012 1 commit
    • Julien Muchembled's avatar
      Review logging to keep all debugging information in RAM and flush only if useful · 1fce5cc4
      Julien Muchembled authored
      The main goal of this patch is to keep all DEBUG logs and packet logger enabled
      without exploding disk usage.
      This is done by keeping the last 16 MB (by default) of debugging information in
      a RAM buffer, and to emit it to an SQLite DB upon RTMIN signal or in case of
      warning and more severe log.
      
      Implementation is also cleaned up for better integration within a framework
      or if run standalone. NEO logger is now a direct child of root handler.
      Only warnings and more severe logs are forwarded to root handler.
      
      A new script 'neolog' is added to pretty-print the contents of the SQLite log.
      
      In unit tests, logging events are not buffered but emitted immediately.
      When a test passes, payloads of all exchanged packets are discarded to reduce
      disk usage on test bots.
      
      This slows down performance tests by about 15 % because even if nothing is
      written to disk, debug and packet log records are now always rendered.
      1fce5cc4
  14. 13 Mar, 2012 1 commit
  15. 26 Oct, 2011 1 commit
  16. 03 Sep, 2011 1 commit
  17. 28 Apr, 2011 1 commit
  18. 21 Apr, 2011 1 commit
  19. 23 Mar, 2011 2 commits
  20. 22 Mar, 2011 1 commit
  21. 08 Feb, 2011 1 commit
  22. 17 Jan, 2011 1 commit
  23. 30 Oct, 2010 1 commit
  24. 29 Oct, 2010 1 commit
  25. 23 Mar, 2010 2 commits
  26. 08 Mar, 2010 1 commit
  27. 23 Feb, 2010 2 commits
  28. 08 Feb, 2010 1 commit
  29. 03 Feb, 2010 1 commit
  30. 01 Feb, 2010 3 commits
  31. 28 Jan, 2010 1 commit
  32. 27 Jan, 2010 1 commit