mirror of
https://github.com/qdm12/gluetun.git
synced 2026-07-31 01:13:21 +02:00
logs
This commit is contained in:
@@ -123,7 +123,9 @@ func (s *Service) onNewPorts(ctx context.Context, internalToExternalPorts map[ui
|
||||
}
|
||||
}
|
||||
|
||||
s.logger.Debug(fmt.Sprintf("writePortForwardedFile with externalPorts: %v", externalPorts))
|
||||
err = s.writePortForwardedFile(externalPorts)
|
||||
s.logger.Debug(fmt.Sprintf("writing port file: error is %v", err))
|
||||
if err != nil {
|
||||
_ = s.cleanup()
|
||||
return fmt.Errorf("writing port file: %w", err)
|
||||
|
||||
@@ -58,6 +58,7 @@ func (s *Service) cleanup() (err error) {
|
||||
|
||||
s.ports = nil
|
||||
|
||||
s.logger.Debug("writePortForwardedFile in cleanup")
|
||||
err = s.writePortForwardedFile(nil)
|
||||
if err != nil {
|
||||
return fmt.Errorf("clearing port file: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user