Projet

Général

Profil

0001-multitenant-print-ignored-commands-in-standard-verbo.patch

Emmanuel Cazenave, 05 octobre 2021 12:13

Télécharger (1,63 ko)

Voir les différences:

Subject: [PATCH] multitenant: print ignored commands in standard verbosity
 mode (#57528)

 hobo/multitenant/management/commands/tenant_command.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hobo/multitenant/management/commands/tenant_command.py
129 129
            and not args_namespace.force_job
130 130
            and getattr(settings, 'DISABLE_CRON_JOBS', False)
131 131
        ):
132
            if args_verbosity.verbosity > 1:
132
            if args_verbosity.verbosity > 0:
133 133
                print('Command %s is ignored because DISABLE_CRON_JOBS is set' % command)
134 134
            return
135 135

  
......
138 138
            for tenant in TenantMiddleware.get_tenants():
139 139
                connection.set_tenant(tenant)
140 140
                if getattr(settings, 'TENANT_DISABLE_CRON_JOBS', False):
141
                    if args_verbosity.verbosity > 1 or args_namespace.force_job:
141
                    if args_verbosity.verbosity > 0 or args_namespace.force_job:
142 142
                        msg = 'Command %s is ignored on tenant %s because TENANT_DISABLE_CRON_JOBS is set' % (
143 143
                            command,
144 144
                            tenant.domain_url,
145
-