Normalize action message

This commit is contained in:
2018-07-11 02:02:05 +02:00
parent 6c2b4f2c58
commit 9b57e1f73e
4 changed files with 14 additions and 15 deletions

View File

@@ -56,7 +56,10 @@ def handle_action(args, last_action, conn):
object_type = 'note'
id_object = note_id
print('{} ({}): {} {} {}: {}'.format(formated_date, username, taction, object_type, id_object, message))
if taction == TypeAction.DELETE.value:
print('{} ({}): {} {} {}'.format(formated_date, username, taction, object_type, id_object))
else:
print('{} ({}): {} {} {}: {}'.format(formated_date, username, taction, object_type, id_object, message))
# print('Sep 02, 2017 02:33 (dakota ): updated task 1: Passage à Angular 4 (status: in progress)')