Commit abfeb104 by James Cammarata

Merge pull request #12529 from soarpenguin/bug-fix

fix no self pointer out of class.
parents 342bc973 1ea66e23
...@@ -45,8 +45,8 @@ debug_lock = Lock() ...@@ -45,8 +45,8 @@ debug_lock = Lock()
#TODO: make this a logging callback instead #TODO: make this a logging callback instead
if C.DEFAULT_LOG_PATH: if C.DEFAULT_LOG_PATH:
path = C.DEFAULT_LOG_PATH path = C.DEFAULT_LOG_PATH
if (os.path.exists(path) and not os.access(path, os.W_OK)) and not os.access(os.path.dirname(path), os.W_OK): if (os.path.exists(path) and not os.access(path, os.W_OK)) or not os.access(os.path.dirname(path), os.W_OK):
self._display.warning("log file at %s is not writeable, aborting\n" % path) print("[WARNING]: log file at %s is not writeable, aborting\n" % path, file=sys.stderr)
logging.basicConfig(filename=path, level=logging.DEBUG, format='%(asctime)s %(name)s %(message)s') logging.basicConfig(filename=path, level=logging.DEBUG, format='%(asctime)s %(name)s %(message)s')
mypid = str(os.getpid()) mypid = str(os.getpid())
......
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