Commit graph

38 commits

Author SHA1 Message Date
David Arnold
7e453ea515
Testing Module (#28000)
* refactor: add create_handler alongside create_logger

* fix: bench helper click exceptions for --help (2nd attempt)

* fix: increase logging level missing test records

* fix: reorganize test runner into testing module and refine logging

* fix: semgrep complaint

* chore: remove unused code; only keep deprecation proxies

* fix: import statements

* fix: output & string processing
2024-10-07 09:46:49 +02:00
Akhil Narang
bf12be6928
fix: 755 -> 644
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-23 16:54:10 +05:30
Hussain Nagaria
8d2137c265 docs: consistent doc strings 2023-12-18 18:27:39 +05:30
Ankush Menat
b0c2f56dae Revert "feat: wkhtmltopdf logging (#19935)"
This reverts commit 6354a018de.
2023-12-05 21:11:35 +05:30
David Arnold
6b2bb9a2ab
fix: add env overrides for service orchestration (#21577)
This avoids having to manipulate config files in brittle bash
entrypoints that need to react to dynamic service discovery.

This significantly improves the operability of various bench sites.
2023-07-14 11:39:01 +05:30
Richard Case
6354a018de
feat: wkhtmltopdf logging (#19935)
* feat: wkhtmltopdf logging

* fix: must supply output function
2023-05-24 16:00:32 +05:30
Ankush Menat
338ccc5a2a
fix: sanitize form dict in error logs (#19835)
[skip ci]
2023-01-30 15:22:21 +05:30
Ankush Menat
278a56417b fix: logging type annotations
closes https://github.com/frappe/frappe/issues/19521
2023-01-10 00:02:44 +05:30
Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features (#17367)
refactor: clean up code to py39+ supported syntax

- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes

Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
2022-07-01 11:51:05 +05:30
gavin
88592eac5d fix!: Set default logging level ERROR when DEV_SERVER envvar is unset 2022-06-07 15:56:26 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
Gavin D'souza
22fc955e65 fix: Tabs > Spaces 2022-03-23 13:37:41 +05:30
Carlos Ríos
e8fdca8698
feat(logger): implement stream_only to use StreamHandler instead of RotatingFileHandler (#16274)
* feat: implement valued parameter 'stream_only' in 'get_logger()' in order to stream logs into stderr instead rotating log files.

Co-authored-by: gavin <gavin18d@gmail.com>
2022-03-23 13:37:12 +05:30
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
Gavin D'souza
4b93f75eba fix: Log site only if exists 2020-08-03 17:23:32 +05:30
Gavin D'souza
a87531e1d0 fix(get_logger): allow None for module 2020-07-31 17:26:37 +05:30
Gavin D'souza
f04ce5dd7a chore: Typo 2020-07-31 16:11:39 +05:30
Gavin D'souza
94116ae93c feat(logger): allow max_size and file_count params 2020-07-31 16:07:51 +05:30
Gavin D'souza
faa9a5466e fix: Slider 2020-07-30 19:04:04 +05:30
Gavin D'souza
fac7f359ae fix: original log format + EAFP 2020-07-30 18:49:59 +05:30
Gavin D'souza
090b81f2f2 style: black + restructure 2020-07-30 17:59:01 +05:30
Gavin D'souza
7bf69c62c1 fix: suffix logger name with site 2020-07-30 17:47:01 +05:30
Gavin D'souza
ae3ee5b2eb fix: save frappe loggers site wise 2020-07-29 13:33:04 +05:30
Gavin D'souza
1345c2feb3 feat: Allow_site flag in frappe.logger 2020-07-27 17:31:12 +05:30
Gavin D'souza
ad1152f8e8 feat: override site name via _site
added filter parameter for logger
2020-07-27 17:13:18 +05:30
Gavin D'souza
c87d598480 refactor: less word do trick
Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
2020-07-17 17:35:08 +05:30
Gavin D'souza
e92a612ba2 docs(get_logger): add docstring 2020-07-16 16:41:18 +05:30
Gavin D'souza
476e625261 fix: Add site validation for logger 2020-07-16 16:26:20 +05:30
Gavin D'souza
746b540af8 fix: Add Form Dict information only for frappe.log 2020-05-27 19:09:18 +05:30
Gavin D'souza
c39a52d764 feat: seperate loggers into frappe, web, scheduler categories and not by
module
2020-05-27 18:33:03 +05:30
Gavin D'souza
627940c56b feat: site wise logs under sites/{sitename}/logs/frappe.log 2020-05-05 18:58:38 +05:30
Chinmay D. Pai
1bd5c916ce
chore: separate frappe log by site
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-22 16:23:02 +05:30
Aditya Hase
e6bd1e4995 Replaced all instances of 'unicode' with 'six.text_type' (#3825) 2017-08-02 16:57:39 +05:30
Rushabh Mehta
0bdb4b6ec8 [fix] longer error logs 2016-10-05 17:57:26 +05:30
Rushabh Mehta
e091005b00 [logger] fix tests 2016-09-29 11:44:07 +05:30
Rushabh Mehta
527115ce07 [logger] log in logs/frappe.log 2016-09-29 11:40:00 +05:30
Rushabh Mehta
ce88a60153 [logger] log in logs/frappe.log 2016-09-29 11:30:29 +05:30
Anand Doshi
9800ac2d0a [cleanup] simpler logging system that does not affect other loggers 2016-05-06 20:28:10 +05:30