A `git import` progress line: always in the log file, and on the terminal with `ATOMIC_TRACE_GIT_IMPORT`.
(message: impl AsRef<str>)
| 2750 | /// A `git import` progress line: always in the log file, and on the terminal |
| 2751 | /// with `ATOMIC_TRACE_GIT_IMPORT`. |
| 2752 | pub(crate) fn trace_git_import(message: impl AsRef<str>) { |
| 2753 | let message = message.as_ref(); |
| 2754 | tracing::info!(target: GIT_IMPORT_LOG_TARGET, "{message}"); |
| 2755 | if trace_git_import_enabled() { |
| 2756 | eprintln!("[git-import] {message}"); |
| 2757 | } |
| 2758 | } |
| 2759 | |
| 2760 | struct SlowImportProgress { |
| 2761 | done: Option<mpsc::Sender<()>>, |
no test coverage detected