From: tragait Date: Fri, 27 Mar 2020 08:18:42 +0000 (+0000) Subject: fix for cert log file X-Git-Tag: 1.8.1~15 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=sdnc%2Foam.git;a=commitdiff_plain;h=23d60443bef503167cd6534170b08c9cc4501f72 fix for cert log file This commit fixes the filenotfound exception for cert log file. Issue-ID: SDNC-1139 Signed-off-by: tragait Change-Id: I907b4ef0d8ceec179742662dd66d6d9647669b17 Former-commit-id: 102920f09d5df217507f59e1c7208b2e9ebf916e --- diff --git a/installation/sdnc/src/main/scripts/installCerts.py b/installation/sdnc/src/main/scripts/installCerts.py index 8135f600..a2a25d5c 100644 --- a/installation/sdnc/src/main/scripts/installCerts.py +++ b/installation/sdnc/src/main/scripts/installCerts.py @@ -28,7 +28,11 @@ import shutil import subprocess import logging + log_file = '/opt/opendaylight/data/log/installCerts.log' +with open(os.path.join('/opt/opendaylight/data/log', 'installCerts.log'), 'w') as fp: + pass + log_format = "%(asctime)s - %(name)s - %(levelname)s - %(message)s" logging.basicConfig(filename=log_file,level=logging.DEBUG,filemode='w',format=log_format)