You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We used the `logrus` package internally, but minimally
and pretty much only to notify processing status to the user.
This code was thus the only remaining consumer of that package,
which we don't really need.
Add a neutral (nor log, nor warning) minimal abstraction `Alert`,
similar in spirit to `ghw`, to be used when we need to notify the
user about processing status.
Make the backend easy to replace to make integration of this code
easier. We don't see this happening, but the extra cost is negligible.
Remove the direct dependency to `logrus`.
Note we still have quite many indirect dependencies pulling it in.
Signed-off-by: Francesco Romani <fromani@redhat.com>
return"", fmt.Errorf("no match for the specified must gather directory path: %s and suffix: %s", mustGatherPath, suffix)
97
96
}
98
97
iflen(paths) >1 {
99
-
log.Infof("Multiple matches for the specified must gather directory path: %s and suffix: %s", mustGatherPath, suffix)
98
+
Alert("Multiple matches for the specified must gather directory path: %s and suffix: %s", mustGatherPath, suffix)
100
99
return"", fmt.Errorf("Multiple matches for the specified must gather directory path: %s and suffix: %s.\n Expected only one performance-addon-operator-must-gather* directory, please check the must-gather tarball", mustGatherPath, suffix)
0 commit comments