Skip to content

Commit

Permalink
logging, spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Pickett committed Feb 19, 2025
1 parent bc60132 commit 1bac9ea
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ee/tpmrunner/tpmrunner.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ func New(ctx context.Context, slogger *slog.Logger, store types.GetterSetterDele
if runtime.GOOS == "linux" {
_, err := os.Stat("/dev/tpm0")
hasTPM = err == nil

if !hasTPM {
slogger.Log(ctx, slog.LevelInfo,
"no tpm found",
"err", err,
)
}
}

tpmRunner.machineHasTpm.Store(hasTPM)
Expand Down Expand Up @@ -243,7 +250,7 @@ func (tr *tpmRunner) loadOrCreateKeys(ctx context.Context) error {
tr.machineHasTpm.Store(false)

tr.slogger.Log(ctx, slog.LevelInfo,
"termial tpm error, not retrying",
"terminal tpm error, not retrying",
"err", err,
)

Expand Down

0 comments on commit 1bac9ea

Please sign in to comment.