diff options
author | Aaron LI <aly@aaronly.me> | 2017-10-29 15:23:21 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-10-29 15:23:21 +0800 |
commit | 7d676dd13f679175bf5554a6784dbf636190887f (patch) | |
tree | 66d0be8945f4d48fa66d0fbe08d88f25bea925a3 /fg21sim/products.py | |
parent | e3c07b150cb9ae18c0b8ba895631bd0c5f176651 (diff) | |
download | fg21sim-7d676dd13f679175bf5554a6784dbf636190887f.tar.bz2 |
Update logging messages
Diffstat (limited to 'fg21sim/products.py')
-rw-r--r-- | fg21sim/products.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fg21sim/products.py b/fg21sim/products.py index 5f8d2d9..f35dcdd 100644 --- a/fg21sim/products.py +++ b/fg21sim/products.py @@ -347,7 +347,7 @@ class Products: def reset(self): self.manifest = OrderedDict() self.manifestfile = None - logger.warning("Reset products manifest") + logger.warning("Reset products manifest!") def dump(self, outfile=None, clobber=False, backup=True): """ @@ -381,8 +381,7 @@ class Products: "self.manifestfile is None") else: outfile = self.manifestfile - logger.warning("outfile not provided, " + - "use self.manifestfile: {0}".format(outfile)) + logger.info("Output to self.manifestfile: {0}".format(outfile)) outfile = os.path.expanduser(outfile) if not os.path.isabs(outfile): raise ValueError("Not an absolute path: {0}".format(outfile)) @@ -397,6 +396,7 @@ class Products: # with open(outfile, "w") as fp: json.dump(self.manifest, fp, indent=4) + fp.write("\n") logger.info("Dumped manifest to file: {0}".format(outfile)) def load(self, infile): |