api: do not log if nothing was changed
gitea/ants-hub/pipeline/head This commit looks good
Details
gitea/ants-hub/pipeline/head This commit looks good
Details
This commit is contained in:
parent
ca665e47c9
commit
f7ab870963
|
@ -351,10 +351,9 @@ class RendezVousDisponibleView(View):
|
|||
if parts:
|
||||
actions.append(f'{action} {", ".join(parts)}')
|
||||
if actions:
|
||||
log_message = '; '.join(actions)
|
||||
logger.info('rendez-vous-disponibles(%s) %s', request.raccordement, '; '.join(actions))
|
||||
else:
|
||||
log_message = 'did nothing'
|
||||
logger.info('rendez-vous-disponibles(%s) %s', request.raccordement, log_message)
|
||||
logger.debug('rendez-vous-disponibles(%s) nothing done.', request.raccordement)
|
||||
return JsonResponse(
|
||||
{
|
||||
'err': 0,
|
||||
|
|
Loading…
Reference in New Issue