You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2021/11/22 15:26:48 UTC
[incubator-datalab] branch DATALAB-2607 updated: [DATALAB-2607]: fixed request_id undefined error for Dataproc
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2607
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/DATALAB-2607 by this push:
new 1dce92d [DATALAB-2607]: fixed request_id undefined error for Dataproc
1dce92d is described below
commit 1dce92d7a45b9461b4ff5cbbee146fd3f8c475d9
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Mon Nov 22 17:23:31 2021 +0200
[DATALAB-2607]: fixed request_id undefined error for Dataproc
---
infrastructure-provisioning/src/general/lib/os/logger.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/src/general/lib/os/logger.py b/infrastructure-provisioning/src/general/lib/os/logger.py
index 594608b..46add9a 100644
--- a/infrastructure-provisioning/src/general/lib/os/logger.py
+++ b/infrastructure-provisioning/src/general/lib/os/logger.py
@@ -28,11 +28,11 @@ try:
request_id = os.environ['request_id']
except:
os.environ['request_id'] = 'undefined_request_id'
- subprocess.run("sudo mkdir -p /logs/undefined_conf_resource/", shell=True, check=True)
try:
conf_resource = os.environ['conf_resource']
except:
os.environ['conf_resource'] = 'undefined_conf_resource'
+ subprocess.run("sudo mkdir -p /logs/undefined_conf_resource/", shell=True, check=True)
local_log_filename = "{}_{}.log".format(os.environ['conf_resource'], os.environ['request_id'])
local_log_filepath = "/logs/" + os.environ['conf_resource'] + "/" + local_log_filename
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org