Skip to content
This repository was archived by the owner on Oct 27, 2021. It is now read-only.

Commit ea7d33e

Browse files
committed
logz
1 parent c180c56 commit ea7d33e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package main
1818
import (
1919
"fmt"
2020
"io/ioutil"
21+
"log"
2122
"os"
2223
"strings"
2324
"time"
@@ -31,6 +32,7 @@ import (
3132
func setLed(key string) error {
3233
value := os.Getenv(fmt.Sprintf("NUC_LED_%s", strings.ToUpper(key)))
3334
bytes := []byte(value)
35+
log.Printf("Setting NUC LED to: %s", value)
3436
return ioutil.WriteFile("/proc/acpi/nuc_led", bytes, 0644)
3537
}
3638

0 commit comments

Comments
 (0)