Add tracing around the Github Actions reinstall issue (#541)

This commit is contained in:
Ana Hobden 2023-07-05 13:39:01 -07:00 committed by GitHub
parent ba841149e7
commit edb72882fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -288,11 +288,13 @@ impl Action for ConfigureInitService {
.await
.map_err(Self::error)?;
if Path::new(SERVICE_DEST).exists() {
tracing::trace!(path = %SERVICE_DEST, "Removing");
tokio::fs::remove_file(SERVICE_DEST)
.await
.map_err(|e| ActionErrorKind::Remove(SERVICE_DEST.into(), e))
.map_err(Self::error)?;
}
tracing::trace!(src = %SERVICE_SRC, dest = %SERVICE_DEST, "Symlinking");
tokio::fs::symlink(SERVICE_SRC, SERVICE_DEST)
.await
.map_err(|e| {
@ -307,11 +309,14 @@ impl Action for ConfigureInitService {
.await
.map_err(Self::error)?;
if Path::new(SOCKET_DEST).exists() {
tracing::trace!(path = %SOCKET_DEST, "Removing");
tokio::fs::remove_file(SOCKET_DEST)
.await
.map_err(|e| ActionErrorKind::Remove(SOCKET_DEST.into(), e))
.map_err(Self::error)?;
}
tracing::trace!(src = %SOCKET_SRC, dest = %SOCKET_DEST, "Symlinking");
tokio::fs::symlink(SOCKET_SRC, SOCKET_DEST)
.await
.map_err(|e| {