diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2023-08-01 14:00:32 +0200 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2023-08-01 18:26:10 +0200 |
commit | 49038f125aaadc3967a8eec251a4ea69ec5a8869 (patch) | |
tree | 125edd5b8698c09c8ef9bb4e315d87a561517866 /tests | |
parent | ee0d62db444441be41d99ac4ee5f2de5100cd934 (diff) |
src: improve logging messages
Some users have mistakenly reported tiptorrent problems when the process
takes a long time. Specifically by rebooting or powering off the client
in the middle of the md5sum computation stage, just after the tiptorrent
transfer.
Same problem occurs when image creation command takes a long period of
time.
In order to help the user understand the different stages of commands
such as image creation or image restore using tiptorrent, the following
changes have been made to the current logging solution:
- Add log messages to warn users not to reboot or shut down the client
during a tiptorrent transfer, and also during the md5sum computation
stage.
- Add a log message telling the user that the image creation processes
have started.
- Use logging.exception inside "except:" blocks to print a traceback
with the log messsage.
(https://docs.python.org/3/library/logging.html#logging.exception)
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions