Skip to content

Have different level of log #154

@mart-e

Description

@mart-e

Hi,

When doing a tx pull, the new script is very verbose and does not allow to easily filter debug, info, warning and error messages.

# Getting info about resources

odoo-14.account - Getting info
odoo-14.account_debit_note - Getting info
odoo-14.account_check_printing - Getting info
odoo-14.account_edi - Getting info
odoo-14.account_edi_facturx - Getting info
odoo-14.account_debit_note - Done
...
odoo-14.fetchmail_gmail - Getting info
odoo-14.event_crm - Done
odoo-14.fetchmail_outlook - Getting info
odoo-14.event_sale - Done
odoo-14.fleet - Getting info
odoo-14.fetchmail_gmail - Resource odoo-14.fetchmail_gmail does not exist
odoo-14.gamification - Getting info
...
 Pulling files

odoo-14.account [af] - Pulling file
odoo-14.account [am] - Pulling file
odoo-14.account [ar] - Pulling file
odoo-14.account [az] - Pulling file
odoo-14.account [bg] - Pulling file
odoo-14.account [af] - User defined language 'af' does not belong to project, skipping
odoo-14.account [bn] - Pulling file
odoo-14.account [am] - User defined language 'am' does not belong to project, skipping
odoo-14.account [bs] - Pulling file
odoo-14.account [az] - User defined language 'az' does not belong to project, skipping
odoo-14.account [bs] - User defined language 'bs' does not belong to project, skipping
odoo-14.account [ca] - Pulling file
odoo-14.account [ckb] - Pulling file
odoo-14.account [bn] - Local file is newer than remote, skipping
odoo-14.account [bg] - Local file is newer than remote, skipping
...

while the log in the previous version of the CLI looked like:

tx INFO: Pulling translations for resource odoo-14.base (source: odoo/addons/base/i18n/base.pot)
tx INFO: Skipping 'bs' translation (file: odoo/addons/base/i18n/bs.po).
tx WARNING:  -> et: odoo/addons/base/i18n/et.po
tx INFO: Skipping 'sk' translation (file: odoo/addons/base/i18n/sk.po).
tx INFO: Skipping 'de' translation (file: odoo/addons/base/i18n/de.po).
tx WARNING:  -> sv: odoo/addons/base/i18n/sv.po
tx INFO: Skipping 'si' translation (file: odoo/addons/base/i18n/si.po).
tx WARNING:  -> ro: odoo/addons/base/i18n/ro.po
tx INFO: Skipping 'ca' translation (file: odoo/addons/base/i18n/ca.po).
tx INFO: Skipping 'es_BO' translation (file: odoo/addons/base/i18n/es_BO.po).
....
tx ERROR: Resource odoo-14.fetchmail_gmail doesn't exist on the server.
tx INFO: Pulling translations for resource odoo-14.fetchmail_outlook (source: addons/fetchmail_outlook/i18n/fetchmail_outlook.pot)
...

where it was easy to filter out info and warning messages.

Fetching the translations of our project, was 15k lines of INFO but only a few were actual WARNING and ERRORs.
With the new CLI, fetching the same project migrated, it is now 31k lines where it's hard to spot the warning or errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions