From 4b14402c5af83f2b342aafcd94d3c05a3bcfcf0d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 12 Aug 2020 18:13:15 +0200 Subject: [PATCH] Moaaar debug --- src/yunohost/data_migrations/0017_postgresql_9p6_to_11.py | 3 +++ src/yunohost/data_migrations/0018_xtable_to_nftable.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/yunohost/data_migrations/0017_postgresql_9p6_to_11.py b/src/yunohost/data_migrations/0017_postgresql_9p6_to_11.py index e39cd84ad..955393c5b 100644 --- a/src/yunohost/data_migrations/0017_postgresql_9p6_to_11.py +++ b/src/yunohost/data_migrations/0017_postgresql_9p6_to_11.py @@ -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', diff --git a/src/yunohost/data_migrations/0018_xtable_to_nftable.py b/src/yunohost/data_migrations/0018_xtable_to_nftable.py index ed9f7cf89..2f931a6ef 100644 --- a/src/yunohost/data_migrations/0018_xtable_to_nftable.py +++ b/src/yunohost/data_migrations/0018_xtable_to_nftable.py @@ -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',