@@ -17,17 +17,17 @@ func getSysProcAttr() *syscall.SysProcAttr {
1717}
1818
1919func (c * Client ) terminateProcess () error {
20- c .logger .Debug ().Msg ("sending interrupt signal to source plugin" )
20+ c .logger .Debug ().Msgf ("sending interrupt signal to %s plugin" , c . typ . String () )
2121 if err := c .cmd .Process .Signal (os .Interrupt ); err != nil {
22- c .logger .Error ().Err (err ).Msg ("failed to send interrupt signal to source plugin" )
22+ c .logger .Error ().Err (err ).Msgf ("failed to send interrupt signal to %s plugin" , c . typ . String () )
2323 }
2424 timer := time .AfterFunc (5 * time .Second , func () {
25- c .logger .Info ().Msg ("sending kill signal to source plugin" )
25+ c .logger .Info ().Msgf ("sending kill signal to %s plugin" , c . typ . String () )
2626 if err := c .cmd .Process .Kill (); err != nil {
27- c .logger .Error ().Err (err ).Msg ("failed to kill source plugin" )
27+ c .logger .Error ().Err (err ).Msgf ("failed to kill %s plugin" , c . typ . String () )
2828 }
2929 })
30- c .logger .Info ().Msg ("waiting for source plugin to terminate" )
30+ c .logger .Info ().Msgf ("waiting for %s plugin to terminate" , c . typ . String () )
3131 st , err := c .cmd .Process .Wait ()
3232 timer .Stop ()
3333 if err != nil {
@@ -42,7 +42,7 @@ func (c *Client) terminateProcess() error {
4242 if st .ExitCode () == 137 {
4343 additionalInfo = " (Out of Memory)"
4444 }
45- return fmt .Errorf ("source plugin process failed with %s%s" , st .String (), additionalInfo )
45+ return fmt .Errorf ("%s plugin process failed with %s%s" , c . typ . String () , st .String (), additionalInfo )
4646 }
4747
4848 return nil
0 commit comments