Improve logging at INFO level
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Ubuntu One Client | Status tracked in Trunk | |||||
Stable-1-2 |
Fix Released
|
High
|
Natalia Bidart | |||
Trunk |
Fix Released
|
High
|
Natalia Bidart | |||
ubuntuone-client (Ubuntu) |
Fix Released
|
High
|
dobey | |||
Lucid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Current logging for INFo level is not good enough to diagnose file/dir deletion. We need to improve this by:
- Sync must log the 'Calling' message plus the event that was processed and that generated the call.
- Log in INFO the FS_(DIR|
-------
TEST CASE:
* having the syncdaemon without debug mode on for logs, when deleting a sycnhed file and without this fix, in the log you can only see:
2010-05-11 10:53:09,847 - ubuntuone.
2010-05-11 10:53:14,666 - ubuntuone.
* when running the syncdaemon with this fix, when removing a synched file, in the log you can now see:
2010-05-11 12:19:22,971 - ubuntuone.
2010-05-11 12:19:22,973 - ubuntuone.
2010-05-11 12:19:22,979 - ubuntuone.
2010-05-11 12:19:38,540 - ubuntuone.
2010-05-11 12:19:38,541 - ubuntuone.
Related branches
- Rick McBride (community): Approve
- Tim Cole (community): Approve
-
Diff: 388 lines (+134/-57)5 files modifiedtests/syncdaemon/fsm/test_fsm.py (+42/-46)
tests/syncdaemon/test_eq_inotify.py (+28/-4)
tests/syncdaemon/test_sync.py (+52/-0)
ubuntuone/syncdaemon/event_queue.py (+8/-3)
ubuntuone/syncdaemon/fsm/fsm.py (+4/-4)
- Rick McBride (community): Approve
- Tim Cole (community): Approve
-
Diff: 187 lines (+92/-11)4 files modifiedtests/syncdaemon/test_eq_inotify.py (+28/-4)
tests/syncdaemon/test_sync.py (+52/-0)
ubuntuone/syncdaemon/event_queue.py (+8/-3)
ubuntuone/syncdaemon/fsm/fsm.py (+4/-4)
Changed in ubuntuone-client: | |
importance: | Undecided → High |
assignee: | nobody → Naty Bidart (nataliabidart) |
status: | New → In Progress |
tags: | added: foundations+ sru u1-lucid |
tags: |
added: u1-lucid-sru removed: sru u1-lucid |
Changed in ubuntuone-client (Ubuntu): | |
status: | New → Triaged |
Changed in ubuntuone-client (Ubuntu): | |
assignee: | nobody → Rodney Dawes (dobey) |
Changed in ubuntuone-client (Ubuntu): | |
importance: | Undecided → High |
Changed in ubuntuone-client (Ubuntu): | |
status: | Triaged → Confirmed |
Changed in ubuntuone-client (Ubuntu): | |
status: | Confirmed → Triaged |
description: | updated |
Changed in ubuntuone-client (Ubuntu): | |
milestone: | none → lucid-updates |
Changed in ubuntuone-client: | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done removed: verification-needed |
tags: | added: testcase |
TEST CASE:
* having the syncdaemon without debug mode on for logs, when deleting a sycnhed file and without this branch, in the log you can only see:
2010-05-11 10:53:09,847 - ubuntuone. SyncDaemon. sync - INFO - -:-:- - ['-'::'-'] ''/home/ nessita/ Ubuntu One/work/ weekly- report. txt.copy' ' | Called delete_on_server (In: T:NONE:F) SyncDaemon. sync - INFO - -:-:- - [''::'b9bf33b5- af86-469b- 8182-a47fc00fe2 fd'] ''-'' | Called remove_trash (In: F:NA:NA)
2010-05-11 10:53:14,666 - ubuntuone.
* when running the syncdaemon within this branch, when removing a synched file, in the log you can now see:
2010-05-11 12:19:22,971 - ubuntuone. SyncDaemon. EQ - INFO - push_event: FS_FILE_DELETE, args:(' /home/nessita/ Ubuntu One/work/ weekly- report. txt.last' ,), kw:{} SyncDaemon. sync - INFO - T:NONE:F 1f4a1998- e08a-4525- 9780-14905b63a6 2f ['root' ::'8af85318- ceae-4dec- 9b58-cf44cb2f96 4b'] ''Ubuntu One/work/ weekly- report. txt.last' ' | Calling delete_on_server (got FS_FILE_DELETE:{}) SyncDaemon. sync - INFO - -:-:- - ['-'::'-'] ''/home/ nessita/ Ubuntu One/work/ weekly- report. txt.last' ' | Called delete_on_server (In: T:NONE:F) SyncDaemon. sync - INFO - -:-:- - [''::'8af85318- ceae-4dec- 9b58-cf44cb2f96 4b'] ''-'' | Calling remove_trash (got AQ_UNLINK_OK:{}) SyncDaemon. sync - INFO - -:-:- - [''::'8af85318- ceae-4dec- 9b58-cf44cb2f96 4b'] ''-'' | Called remove_trash (In: F:NA:NA)
2010-05-11 12:19:22,973 - ubuntuone.
2010-05-11 12:19:22,979 - ubuntuone.
2010-05-11 12:19:38,540 - ubuntuone.
2010-05-11 12:19:38,541 - ubuntuone.