mkabilov / logical_backup

[WIP] Continuous backup of the tables using PostgreSQL logical replication
MIT License
9 stars 3 forks source link

Customize default zap configuration. #44

Closed alexeyklyukin closed 5 years ago

alexeyklyukin commented 5 years ago

Disable stack traces for warn level, allow setting minimum log level and disabling emitting source code line numbers in the log.

Additional YAML configuration parameters for the backup and command-line for the restore to customize logging.

As a collaterial to refining log messages, set the String() output of TableBackup to show unsanitized string representation, avoiding extra quotes in the logs (so far this function is only used for logging).

Some minor stylistic changes around previously ignored errors in printf in the files touched by other changes.