log INFO level records too much information
Hi there !
Currently, the default INFO loglevel records too much information in the logfile, that is not required, and it might pose a performance and a security issue.
I propose that the INFO loglevel records only the basic events, such as start of the server, user login and logout, and error messages. This would be analogous as the previous Trytond messages shown when trytond was invoked without arguments.
Sample :
[Fri Jan 01 12:03:46 2016] INFO:trytond.protocols.dispatcher:model.ir.attachment.search_count(*([[u'resource', u'=', u'gnuhealth.patient,6']], {u'date_format': u'%m/%d/%Y', u'language': u'en_US', u'locale': {u'date': u'%m/%d/%Y', u'thousands_sep': u',', u'decimal_point': u'.', u'grouping': [3, 3, 0]}, u'language_direction': u'ltr', u'company.rec_name': u'GNU SOLIDARIO HOSPITAL', u'groups': [13, 14, 1, 26, 2, 5, 21, 18, 15, 20, 23, 19, 25, 22, 16, 4, 3, 28, 27, 11, 10, 12], u'employee': None, u'company': 1}), **{}) from 1@::ffff:2.138.18.247:37282/health30rc1
using /home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf as the configuration file