mirror of
https://github.com/saily/vnc-recorder.git
synced 2025-06-28 14:36:58 +00:00
debug mode
This commit is contained in:
parent
aad66f586f
commit
21c5be9bc7
11
main.go
11
main.go
@ -118,9 +118,14 @@ func main() {
|
||||
Usage: "S3 SSL.",
|
||||
EnvVars: []string{"VR_S3_SSL"},
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "debug",
|
||||
Value: false,
|
||||
Usage: "Debug.",
|
||||
EnvVars: []string{"VR_DEBUG"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
if err := app.Run(os.Args); err != nil {
|
||||
logrus.WithError(err).Fatal("recording failed.")
|
||||
}
|
||||
@ -276,6 +281,10 @@ func vcodecRun(vcodec *X264ImageCustomEncoder, c *cli.Context, outfileName strin
|
||||
}
|
||||
|
||||
func recorder(c *cli.Context) error {
|
||||
if c.Bool("debug") {
|
||||
logrus.SetReportCaller(true)
|
||||
}
|
||||
|
||||
var minioClient *minio.Client
|
||||
|
||||
var outfileName string
|
||||
|
Loading…
Reference in New Issue
Block a user