Browse Source

Logging of signals

master
Chris Smith 5 years ago
parent
commit
004096f629
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      dotege.go

+ 1
- 0
dotege.go View File

223
 	for _, s := range config.Signals {
223
 	for _, s := range config.Signals {
224
 		container, ok := containers[s.Name]
224
 		container, ok := containers[s.Name]
225
 		if ok {
225
 		if ok {
226
+			logger.Debugf("Killing container %s with signal %s", s.Name, s.Signal)
226
 			err := dockerClient.ContainerKill(context.Background(), container.Id, s.Signal)
227
 			err := dockerClient.ContainerKill(context.Background(), container.Id, s.Signal)
227
 			if err != nil {
228
 			if err != nil {
228
 				logger.Errorf("Unable to send signal %s to container %s: %s", s.Signal, s.Name, err.Error())
229
 				logger.Errorf("Unable to send signal %s to container %s: %s", s.Signal, s.Name, err.Error())

Loading…
Cancel
Save