Add tracing around the Github Actions reinstall issue (#541)
This commit is contained in:
parent
ba841149e7
commit
edb72882fd
|
@ -288,11 +288,13 @@ impl Action for ConfigureInitService {
|
||||||
.await
|
.await
|
||||||
.map_err(Self::error)?;
|
.map_err(Self::error)?;
|
||||||
if Path::new(SERVICE_DEST).exists() {
|
if Path::new(SERVICE_DEST).exists() {
|
||||||
|
tracing::trace!(path = %SERVICE_DEST, "Removing");
|
||||||
tokio::fs::remove_file(SERVICE_DEST)
|
tokio::fs::remove_file(SERVICE_DEST)
|
||||||
.await
|
.await
|
||||||
.map_err(|e| ActionErrorKind::Remove(SERVICE_DEST.into(), e))
|
.map_err(|e| ActionErrorKind::Remove(SERVICE_DEST.into(), e))
|
||||||
.map_err(Self::error)?;
|
.map_err(Self::error)?;
|
||||||
}
|
}
|
||||||
|
tracing::trace!(src = %SERVICE_SRC, dest = %SERVICE_DEST, "Symlinking");
|
||||||
tokio::fs::symlink(SERVICE_SRC, SERVICE_DEST)
|
tokio::fs::symlink(SERVICE_SRC, SERVICE_DEST)
|
||||||
.await
|
.await
|
||||||
.map_err(|e| {
|
.map_err(|e| {
|
||||||
|
@ -307,11 +309,14 @@ impl Action for ConfigureInitService {
|
||||||
.await
|
.await
|
||||||
.map_err(Self::error)?;
|
.map_err(Self::error)?;
|
||||||
if Path::new(SOCKET_DEST).exists() {
|
if Path::new(SOCKET_DEST).exists() {
|
||||||
|
tracing::trace!(path = %SOCKET_DEST, "Removing");
|
||||||
tokio::fs::remove_file(SOCKET_DEST)
|
tokio::fs::remove_file(SOCKET_DEST)
|
||||||
.await
|
.await
|
||||||
.map_err(|e| ActionErrorKind::Remove(SOCKET_DEST.into(), e))
|
.map_err(|e| ActionErrorKind::Remove(SOCKET_DEST.into(), e))
|
||||||
.map_err(Self::error)?;
|
.map_err(Self::error)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tracing::trace!(src = %SOCKET_SRC, dest = %SOCKET_DEST, "Symlinking");
|
||||||
tokio::fs::symlink(SOCKET_SRC, SOCKET_DEST)
|
tokio::fs::symlink(SOCKET_SRC, SOCKET_DEST)
|
||||||
.await
|
.await
|
||||||
.map_err(|e| {
|
.map_err(|e| {
|
||||||
|
|
Loading…
Reference in a new issue