mirror of
https://github.com/yudai/gotty.git
synced 2025-09-22 05:50:48 +02:00
Show command in log
This commit is contained in:
parent
c1ccfdd859
commit
8f95182392
2 changed files with 5 additions and 1 deletions
4
main.go
4
main.go
|
@ -3,8 +3,10 @@ package main
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"os/signal"
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/codegangsta/cli"
|
||||
|
@ -93,6 +95,8 @@ func main() {
|
|||
ctx, cancel := context.WithCancel(context.Background())
|
||||
gCtx, gCancel := context.WithCancel(context.Background())
|
||||
|
||||
log.Printf("GoTTY is starting with command: %s", strings.Join(args, " "))
|
||||
|
||||
errs := make(chan error, 1)
|
||||
go func() {
|
||||
errs <- srv.Run(ctx, server.WithGracefullContext(gCtx))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue