Commit graph

12 commits

Author SHA1 Message Date
Gavin D'souza
e407b78506 chore: Drop dead and deprecated code
* Remove six for PY2 compatability since our dependencies are not, PY2
  is legacy.
* Removed usages of utils from future/past libraries since they are
  deprecated. This includes 'from __future__ ...' and 'from past...'
  statements.
* Removed compatibility imports for PY2, switched from six imports to
  standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
  versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
2021-05-26 15:31:29 +05:30
Aditya Hase
f71dc3c991 feat(rate-limiter): Log data with monitor 2020-05-13 12:34:07 +05:30
Sagar Vora
fb663291e8
fix: werkzeug.exceptions.BadRequestKeyError 2020-04-30 00:26:07 +05:30
Sagar Vora
a195421097
fix: do not check for frappe.conf.monitor while stopping monitor 2020-04-28 19:22:20 +05:30
Aditya Hase
4740e4f7e6 refactor: Monitor
Do not collect request headers
Collect job wait time and whether it was scheduled
2020-03-05 15:06:15 +05:30
Aditya Hase
268c577acd fix(monitor): Include request ip in monitored data 2020-03-05 15:06:15 +05:30
Aditya Hase
2b8c5a7f47 fix: Push a newline after all logs 2020-03-05 15:06:15 +05:30
Aditya Hase
cb3507f5e4 fix(monitor): Use datetime.utcnow() instead of timezone.utc
Python 2, 3 compatibility issue
2020-03-05 15:06:15 +05:30
Aditya Hase
56e1cdde53 fix(monitor): Add UUID to every log 2020-03-05 15:06:15 +05:30
Aditya Hase
ea3f5632d1 fix(monitor): Remove unused imports 2020-03-05 15:06:15 +05:30
Aditya Hase
96d9f2624b fix(monitor): Maintain MAX_LOG entries in cache 2020-03-05 15:06:15 +05:30
Aditya Hase
af3c4feb64 feat: Monitor
Collect HTTP Request and Background Job logs
2020-03-05 15:06:15 +05:30