Moaaar debug

This commit is contained in:
Alexandre Aubin 2020-08-12 18:13:15 +02:00
parent 4cb6f7fddc
commit 4b14402c5a
2 changed files with 6 additions and 0 deletions

View file

@ -47,6 +47,9 @@ class MyMigration(Migration):
return returncode == 0
def runcmd(self, cmd, raise_on_errors=True):
logger.debug("Running command: " + cmd)
p = subprocess.Popen(cmd,
shell=True,
executable='/bin/bash',

View file

@ -90,6 +90,9 @@ class MyMigration(Migration):
self.runcmd("iptables-legacy-restore < %s" % self.backup_rules_ipv6)
def runcmd(self, cmd, raise_on_errors=True):
logger.debug("Running command: " + cmd)
p = subprocess.Popen(cmd,
shell=True,
executable='/bin/bash',