diff options
| author | vladimir.p <vladimir@zadarastorage.com> | 2011-08-24 15:20:37 -0700 |
|---|---|---|
| committer | vladimir.p <vladimir@zadarastorage.com> | 2011-08-24 15:20:37 -0700 |
| commit | e356009b3ab374f073c2ff2cdb30d78bf432670d (patch) | |
| tree | d75054f77bef8611b0cc07b91fca96f977c10a3b /nova | |
| parent | df0f06a8f0d66f07f402aa54cb1aa7ce1b7416c9 (diff) | |
| download | nova-e356009b3ab374f073c2ff2cdb30d78bf432670d.tar.gz nova-e356009b3ab374f073c2ff2cdb30d78bf432670d.tar.xz nova-e356009b3ab374f073c2ff2cdb30d78bf432670d.zip | |
moved import to the top
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/log.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/log.py b/nova/log.py index 3b86d78e8..b1dfd9ed2 100644 --- a/nova/log.py +++ b/nova/log.py @@ -34,6 +34,7 @@ import logging.handlers import os import sys import traceback +import stat import nova from nova import flags @@ -258,7 +259,6 @@ class NovaRootLogger(NovaLogger): self.addHandler(self.filelog) self.logpath = logpath - import stat st = os.stat(self.logpath) if st.st_mode != (stat.S_IFREG | FLAGS.logfile_mode): os.chmod(self.logpath, FLAGS.logfile_mode) |
