~0x44/nova/bug838466

« back to all changes in this revision

Viewing changes to nova/log.py

  • Committer: vladimir.p
  • Date: 2011-08-24 22:20:37 UTC
  • mto: This revision was merged to the branch mainline in revision 1498.
  • Revision ID: vladimir@zadarastorage.com-20110824222037-z0qbqodqz6d5msa7
moved import to the top

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
import os
35
35
import sys
36
36
import traceback
 
37
import stat
37
38
 
38
39
import nova
39
40
from nova import flags
258
259
                self.addHandler(self.filelog)
259
260
                self.logpath = logpath
260
261
 
261
 
                import stat
262
262
                st = os.stat(self.logpath)
263
263
                if st.st_mode != (stat.S_IFREG | FLAGS.logfile_mode):
264
264
                    os.chmod(self.logpath, FLAGS.logfile_mode)