From 464c8ad71c45c9f0ddc64ca7ef816d66476b6707 Mon Sep 17 00:00:00 2001 From: mano3m Date: Mon, 30 Dec 2013 14:56:34 +0100 Subject: [PATCH] Log overwriting of metadata files Gives more info for cases like #2641 --- couchpotato/core/plugins/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/couchpotato/core/plugins/base.py b/couchpotato/core/plugins/base.py index 3f7ed11..86cd977 100644 --- a/couchpotato/core/plugins/base.py +++ b/couchpotato/core/plugins/base.py @@ -97,6 +97,9 @@ class Plugin(object): self.makeDir(os.path.dirname(path)) + if os.path.exists(path): + log.info('%s already exists, overwriting file with new version', path) + try: f = open(path, 'w+' if not binary else 'w+b') f.write(content)