Hooks provide means to test if conditions for a backup are satisfied: #33
Examples are hooks that ...
- test if computer is connected to a specific SSID
- test if computer is connected to a metered network
- check if certain timing conditions are met
These examples all define conditions that have to be satisfied for vykar actions (backups ...).
If the conditions are not satisfied, the hook fails and ERROR messages are written to the logs, and the subsequent actions are not executed.
With a high frequency of backups, this can lead to many ERRORs in the log, e.g. in the following situations:
- when travelling (metered networks)
- when not connected to a certain wifi
- when backups are paused at nighttime (by a hook)
While I think it is technically correct to throw an ERROR, in the described cases vykar just works as expected - and the hook failures just lead to the intended behaviour.
The possibly high amount of these ERROR-message could result in a large amount of log entries and ERRORs - and real problems or unexpected ERRORs might stay undiscovered.
Who wants to check if real/ unexpected problems are hiding in a long list of ERROR messages?
Moreover, currently one hook failure can lead to several log-messages. E.g. if my repo-hook fails (vykar-gui) the logs show four messages:
backup: FAILED: hook error ...
prune skipped
compact skipped
check: FAILED: hook error: ...
Perhaps some of these log-messages could be summarized somehow e.g. by "Full backup has been skipped" or similar?
It would be great if hooks would have configurable log feedback that allows to.
- specify own log messages for the case of hook success or hook failure - including the type of message: ERROR, WARN, INFO - that could replace existing log messages
or
- prevent hook - ERROR message from being printed to the logs - on a per-hook basis.
Perhaps there are betters solutions to this type of problem?
Obviously this issue is entirely from a users' perspective.
Hooks provide means to test if conditions for a backup are satisfied: #33
Examples are hooks that ...
These examples all define conditions that have to be satisfied for vykar actions (backups ...).
If the conditions are not satisfied, the hook fails and ERROR messages are written to the logs, and the subsequent actions are not executed.
With a high frequency of backups, this can lead to many ERRORs in the log, e.g. in the following situations:
While I think it is technically correct to throw an ERROR, in the described cases vykar just works as expected - and the hook failures just lead to the intended behaviour.
The possibly high amount of these ERROR-message could result in a large amount of log entries and ERRORs - and real problems or unexpected ERRORs might stay undiscovered.
Who wants to check if real/ unexpected problems are hiding in a long list of ERROR messages?
Moreover, currently one hook failure can lead to several log-messages. E.g. if my repo-hook fails (vykar-gui) the logs show four messages:
Perhaps some of these log-messages could be summarized somehow e.g. by "Full backup has been skipped" or similar?
It would be great if hooks would have configurable log feedback that allows to.
or
Perhaps there are betters solutions to this type of problem?
Obviously this issue is entirely from a users' perspective.