Index: client/utils/logging_utils.py |
diff --git a/client/utils/logging_utils.py b/client/utils/logging_utils.py |
index ce0df557b9c49fa11e43260827541dea22877683..9b559f597eac1a38a453860ce49af3986c4f179f 100644 |
--- a/client/utils/logging_utils.py |
+++ b/client/utils/logging_utils.py |
@@ -15,6 +15,7 @@ import sys |
import tempfile |
import time |
+from utils import file_path |
# This works around file locking issue on Windows specifically in the case of |
# long lived child processes. |
@@ -199,6 +200,7 @@ def prepare_logging(filename, root=None): |
# Setup up logging to a constant file so we can debug issues where |
# the results aren't properly sent to the result URL. |
if filename: |
+ file_path.ensure_tree(os.path.dirname(os.path.abspath(unicode(filename)))) |
try: |
rotating_file = NoInheritRotatingFileHandler( |
filename, maxBytes=10 * 1024 * 1024, backupCount=5, |