Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

Fix/ignore stdin progress #28

Merged
merged 2 commits into from
Oct 26, 2020
Merged

Fix/ignore stdin progress #28

merged 2 commits into from
Oct 26, 2020

Conversation

Kidswiss
Copy link
Contributor

@Kidswiss Kidswiss commented Oct 22, 2020

This change will stop printing unnecessary percentage information for stdin backups.

It's already using the changes made in #27 cause the logging was refactored quite a bit. So #27 should be merged first.

Closes: #26

@Kidswiss Kidswiss requested a review from corvus-ch October 22, 2020 13:52
@Kidswiss Kidswiss force-pushed the fix/ignore_stdin_progress branch from 930fa7f to c883d4a Compare October 23, 2020 07:26
Copy link
Contributor

@corvus-ch corvus-ch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will review this once #27 is merged and this one is rebased. Please try to prevent dependent PRs. I feel my time is wasted when see the same changes in several reviews. Makes it hard to see what the actual change was.

@Kidswiss Kidswiss force-pushed the fix/ignore_stdin_progress branch from c883d4a to 724b0d1 Compare October 26, 2020 07:29
@Kidswiss Kidswiss requested a review from corvus-ch October 26, 2020 07:35
@Kidswiss
Copy link
Contributor Author

#27 merged and rebased.

Copy link
Contributor

@corvus-ch corvus-ch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having the percentage printer functions attache BackupOutputParser is weird.

I suggest to change the function signature to type PercentageFunc func(logr.InfoLogger, float64). Make the implementations stand alone. The can be exported and thus become public API.

@Kidswiss Kidswiss force-pushed the fix/ignore_stdin_progress branch from 724b0d1 to f8352d2 Compare October 26, 2020 07:52
@Kidswiss Kidswiss requested a review from corvus-ch October 26, 2020 07:54
@Kidswiss Kidswiss merged commit f88ea71 into master Oct 26, 2020
@Kidswiss Kidswiss deleted the fix/ignore_stdin_progress branch October 26, 2020 08:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop progress of backup log message when running pre backup commands
2 participants