Commit f2744d9f authored by Trevor Cappallo's avatar Trevor Cappallo
Browse files

change default log perms to 750/sgid

parent 47ca60d1
......@@ -164,7 +164,8 @@ def setup(config_file=None, logger_name=None, log_filename=None, log_root_dir=No
log_directory = os.path.join(log_root_dir, 'log', datetime.datetime.utcnow().strftime('%Y-%m-%d'))
if not os.path.exists(log_directory):
os.makedirs(log_directory, 0755)
# default log dir permissions: SGID bit + rwxr-x---
os.makedirs(log_directory, 02750)
except OSError:
logging.warn('Unable to create log directory %s', log_directory)
if notify is None:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment