From 0da679957b6381fa5eec4f1a926107265215a877 Mon Sep 17 00:00:00 2001 From: Domeniko Gentner Date: Fri, 15 Jan 2021 19:43:32 +0100 Subject: [PATCH] some debug output --- labertasche/settings/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/labertasche/settings/__init__.py b/labertasche/settings/__init__.py index ad1549f..b17840e 100644 --- a/labertasche/settings/__init__.py +++ b/labertasche/settings/__init__.py @@ -148,6 +148,7 @@ class LegacySettings: } # backup old config + print("Copying old config to backup") copy(old, old.with_suffix('.bak')) # Write new config files @@ -163,10 +164,14 @@ class LegacySettings: p_secret = '/etc/labertasche/' / p_secret with p_sys.open('w') as fp: + print("Dumping system vars as yaml") yaml.dump(systemvars, fp) with p_credentials.open('w') as fp: + print("Dumping credentials as yaml") yaml.dump(credentials, fp) with p_smileys.open('w') as fp: + print("Dumping smileys as yaml") yaml.dump(smileys, fp) with p_secret.open('w') as fp: + print("Dumping secret") fp.write(self.system['secret'])