Skip to content

Commit a47be25

Browse files
authored
chore: fix formatting issues in logp printf-style calls (#9757)
1 parent 3549dea commit a47be25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/ipc/listener_windows.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func securityDescriptor(log *logger.Logger) (string, error) {
5757
isAdmin, err := utils.HasRoot()
5858
if err != nil {
5959
// do not fail, agent would end up in a loop, continue with limited permissions
60-
log.Warnf("failed to detect Administrator: %w", err)
60+
log.Warnf("failed to detect Administrator: %v", err)
6161
isAdmin = false // just in-case to ensure that in error case that its always false
6262
}
6363
// SYSTEM/Administrators can always talk over the pipe, even when not running as privileged
@@ -73,7 +73,7 @@ func securityDescriptor(log *logger.Logger) (string, error) {
7373
gid, err := pathGID(paths.Top())
7474
if err != nil {
7575
// do not fail, agent would end up in a loop, continue with limited permissions
76-
log.Warnf("failed to detect group: %w", err)
76+
log.Warnf("failed to detect group: %v", err)
7777
} else {
7878
descriptor += "(A;;GA;;;" + gid + ")"
7979
}

0 commit comments

Comments
 (0)