Skip to content

Commit b7da0fb

Browse files
committed
fix: remove stray log in org id from executable
1 parent 7d1e84c commit b7da0fb

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

cmd/rewst_windows_service/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func main() {
8282
// Get organization id from executable name
8383
service.OrgId, err = agent.GetOrgIdFromExecutable()
8484
if err != nil {
85-
log.Println("GetOrgIdFromExceutable() failed:", err)
85+
log.Println("GetOrgIdFromExecutable() failed:", err)
8686
return
8787
}
8888

internal/agent/installation.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package agent
33
import (
44
"context"
55
"fmt"
6-
"log"
76
"os"
87
"path/filepath"
98
"strings"
@@ -155,8 +154,7 @@ func (paths *PathsData) Load(ctx context.Context, orgId string) error {
155154

156155
func GetOrgIdFromExecutable() (string, error) {
157156
exec, err := os.Executable()
158-
if err != nil {
159-
log.Println("Executable name not found:", err)
157+
if err != nil {
160158
return "", err
161159
}
162160

0 commit comments

Comments
 (0)