Skip to content

Commit

Permalink
Convert lib/system to use slog (#50300)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosstimothy authored Dec 17, 2024
1 parent 25a6c1f commit 2f05809
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/system/signal.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ int resetInterruptSignalHandler() {
*/
import "C"

import log "github.com/sirupsen/logrus"
import (
"context"
"log/slog"
)

// ResetInterruptSignal will reset the handler for SIGINT back to the default
// handler. We need to do this because when sysvinit launches Teleport on some
Expand All @@ -50,6 +53,6 @@ import log "github.com/sirupsen/logrus"
func ResetInterruptSignalHandler() {
_, err := C.resetInterruptSignalHandler()
if err != nil {
log.Warnf("Failed to reset interrupt signal handler: %v.", err)
slog.WarnContext(context.Background(), "Failed to reset interrupt signal handler", "error", err)
}
}

0 comments on commit 2f05809

Please sign in to comment.