mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-05-24 14:24:15 +00:00
fixed debug mode output
* sending a message wasn't correctly logged in debug mode
This commit is contained in:
parent
326e298801
commit
1fcc2d4acf
@ -338,8 +338,14 @@ func runSignalCli(wait bool, args []string, stdin string) (string, error) {
|
||||
}
|
||||
}
|
||||
|
||||
fullCmd := ""
|
||||
if(stdin != "") {
|
||||
fullCmd += "echo '" + stdin + "' | "
|
||||
}
|
||||
fullCmd += signalCliBinary + " " + strings.Join(args, " ")
|
||||
|
||||
log.Debug("*) su signal-api")
|
||||
log.Debug("*) ", signalCliBinary, " ", strings.Join(args, " "))
|
||||
log.Debug("*) ", fullCmd)
|
||||
|
||||
cmd := exec.Command(signalCliBinary, args...)
|
||||
if stdin != "" {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user