mirror of https://github.com/digint/btrbk
btrbk: remove "duration" column from transaction_log/transaction_syslog
The "duration" column in the transaction log has proven to be confusing to some users, especially on errors (e.g. "send-receive ERROR 27" in issue #177). As it's not really necessary (duration can be computed from the corresponding "starting" log entry), it's now being dropped.pull/180/head
parent
6acea6a08d
commit
88aa8c1fea
|
@ -4,6 +4,7 @@ btrbk-current
|
|||
line option (which is now deprecated).
|
||||
* Add "snapshot" command (close #150).
|
||||
* Add "--preserve-snapshots" and "--preserve-backups" options.
|
||||
* Remove "duration" column from transaction_log/transaction_syslog.
|
||||
* Bugfix: ssh_filter_btrbk: accept mbuffer command (stream_buffer).
|
||||
* Bugfix: print correct (end-)time in transaction_log.
|
||||
|
||||
|
|
10
btrbk
10
btrbk
|
@ -200,11 +200,11 @@ my %table_formats = (
|
|||
RALIGN => { size=>1, used=>1, device_size=>1, device_allocated=>1, device_unallocated=>1, device_missing=>1, device_used=>1, free=>1, free_min=>1, data_ratio=>1, metadata_ratio=>1, global_reserve=>1, global_reserve_used=>1 },
|
||||
},
|
||||
|
||||
transaction => { table => [ qw( type status target_host target_subvol source_host source_subvol parent_subvol ) ],
|
||||
long => [ qw( localtime type status duration target_host target_subvol source_host source_subvol parent_subvol message ) ],
|
||||
raw => [ qw( time localtime type status duration target_url source_url parent_url message ) ],
|
||||
tlog => [ qw( localtime type status duration target_url source_url parent_url message ) ],
|
||||
syslog => [ qw( type status duration target_url source_url parent_url message ) ],
|
||||
transaction => { table => [ qw( type status target_host target_subvol source_host source_subvol parent_subvol ) ],
|
||||
long => [ qw( localtime type status duration target_host target_subvol source_host source_subvol parent_subvol message ) ],
|
||||
tlog => [ qw( localtime type status target_url source_url parent_url message ) ],
|
||||
syslog => [ qw( type status target_url source_url parent_url message ) ],
|
||||
raw => [ qw( time localtime type status duration target_url source_url parent_url message ) ],
|
||||
},
|
||||
|
||||
origin_tree => { table => [ qw( tree uuid parent_uuid received_uuid ) ],
|
||||
|
|
|
@ -76,8 +76,8 @@ allowed.
|
|||
.RS 4
|
||||
If set, all transactions (snapshot create, subvolume send\-receive,
|
||||
subvolume delete) as well as abort messages are logged to <file>, in a
|
||||
space-separated table format: "localtime type status duration
|
||||
target_url source_url parent_url message".
|
||||
space-separated table format: "localtime type status target_url
|
||||
source_url parent_url message".
|
||||
.RE
|
||||
.PP
|
||||
\fBtransaction_syslog\fR <facility>|no
|
||||
|
|
Loading…
Reference in New Issue