Skip to content

Commit

Permalink
Update to upstream tinywl implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
shtirlic committed Jan 8, 2024
1 parent d29b640 commit b3db491
Show file tree
Hide file tree
Showing 21 changed files with 3,059 additions and 1,880 deletions.
9 changes: 8 additions & 1 deletion cmd/tinywl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"flag"
"fmt"
"log/slog"
"os"
"os/exec"
"runtime"
Expand All @@ -11,7 +12,9 @@ import (
)

var (
command = flag.String("s", "", "startup command")
command = flag.String("s", "", "startup command")
programLevel = new(slog.LevelVar) // Info by default

)

func fatal(msg string, err error) {
Expand All @@ -26,9 +29,13 @@ func init() {
}

func main() {
// set global logger with custom options
slog.SetDefault(slog.New(slog.NewTextHandler(os.Stderr, &slog.HandlerOptions{Level: programLevel})))

flag.Parse()

// set up logging
// programLevel.Set(slog.LevelDebug)
wlroots.OnLog(wlroots.LogImportanceDebug, nil)

// start the server
Expand Down
Loading

0 comments on commit b3db491

Please sign in to comment.