diff --git a/src/core/zowe/core_for_zowe_sdk/sdk_api.py b/src/core/zowe/core_for_zowe_sdk/sdk_api.py index 9b761370..4fe8e0f2 100644 --- a/src/core/zowe/core_for_zowe_sdk/sdk_api.py +++ b/src/core/zowe/core_for_zowe_sdk/sdk_api.py @@ -33,7 +33,7 @@ class SdkApi: Name of the logger (same as the filename by default) """ - def __init__(self, profile: dict, default_url: str, logger_name: str = __name__, log = False): + def __init__(self, profile: dict, default_url: str, logger_name: str = __name__, log = True): session = Session(profile) self.session: ISession = session.load() diff --git a/src/zos_console/zowe/zos_console_for_zowe_sdk/console.py b/src/zos_console/zowe/zos_console_for_zowe_sdk/console.py index 369e3e04..5f33dd1c 100644 --- a/src/zos_console/zowe/zos_console_for_zowe_sdk/console.py +++ b/src/zos_console/zowe/zos_console_for_zowe_sdk/console.py @@ -28,7 +28,7 @@ class Console(SdkApi): """ def __init__(self, connection: dict, log = False): - super().__init__(connection, "/zosmf/restconsoles/consoles/defcn", logger_name=__name__) + super().__init__(connection, "/zosmf/restconsoles/consoles/defcn", logger_name=__name__, log=log) def issue_command(self, command: str, console: Optional[str] = None) -> IssueCommandResponse: """Issues a command on z/OS Console. diff --git a/src/zos_files/zowe/zos_files_for_zowe_sdk/file_system.py b/src/zos_files/zowe/zos_files_for_zowe_sdk/file_system.py index eb0bc99f..23d0f0e0 100644 --- a/src/zos_files/zowe/zos_files_for_zowe_sdk/file_system.py +++ b/src/zos_files/zowe/zos_files_for_zowe_sdk/file_system.py @@ -32,8 +32,8 @@ class FileSystems(SdkApi): A profile for connection in dict (json) format """ - def __init__(self, connection: dict): - super().__init__(connection, "/zosmf/restfiles/", logger_name=__name__) + def __init__(self, connection: dict, log=True): + super().__init__(connection, "/zosmf/restfiles/", logger_name=__name__, log=log) self._default_headers["Accept-Encoding"] = "gzip" def create(self, file_system_name: str, options: dict = {}) -> dict: diff --git a/src/zos_files/zowe/zos_files_for_zowe_sdk/files.py b/src/zos_files/zowe/zos_files_for_zowe_sdk/files.py index 797379b8..cecf90aa 100644 --- a/src/zos_files/zowe/zos_files_for_zowe_sdk/files.py +++ b/src/zos_files/zowe/zos_files_for_zowe_sdk/files.py @@ -45,8 +45,8 @@ class Files(SdkApi): uss: USSFiles fs: FileSystems - def __init__(self, connection: dict, log = False): - super().__init__(connection, "/zosmf/restfiles/", logger_name=__name__) + def __init__(self, connection: dict, log = True): + super().__init__(connection, "/zosmf/restfiles/", logger_name=__name__, log=log) self._default_headers["Accept-Encoding"] = "gzip" self.ds = Datasets(connection) self.uss = USSFiles(connection) diff --git a/src/zos_jobs/zowe/zos_jobs_for_zowe_sdk/jobs.py b/src/zos_jobs/zowe/zos_jobs_for_zowe_sdk/jobs.py index 95aad52b..7c818631 100644 --- a/src/zos_jobs/zowe/zos_jobs_for_zowe_sdk/jobs.py +++ b/src/zos_jobs/zowe/zos_jobs_for_zowe_sdk/jobs.py @@ -30,8 +30,8 @@ class Jobs(SdkApi): A profile for connection in dict (json) format """ - def __init__(self, connection: dict, log = False): - super().__init__(connection, "/zosmf/restjobs/jobs/", logger_name=__name__) + def __init__(self, connection: dict, log = True): + super().__init__(connection, "/zosmf/restjobs/jobs/", logger_name=__name__, log=log) def get_job_status(self, jobname: str, jobid: str) -> JobResponse: """ diff --git a/src/zos_tso/zowe/zos_tso_for_zowe_sdk/tso.py b/src/zos_tso/zowe/zos_tso_for_zowe_sdk/tso.py index 9b2937bf..b7510893 100644 --- a/src/zos_tso/zowe/zos_tso_for_zowe_sdk/tso.py +++ b/src/zos_tso/zowe/zos_tso_for_zowe_sdk/tso.py @@ -30,8 +30,8 @@ class Tso(SdkApi): Profile used for tso connection """ - def __init__(self, connection: dict, tso_profile: Optional[dict] = None, log = False): - super().__init__(connection, "/zosmf/tsoApp/tso", logger_name=__name__) + def __init__(self, connection: dict, tso_profile: Optional[dict] = None, log = True): + super().__init__(connection, "/zosmf/tsoApp/tso", logger_name=__name__, log=log) self.session_not_found = constants["TsoSessionNotFound"] self.tso_profile = tso_profile or {} diff --git a/src/zosmf/zowe/zosmf_for_zowe_sdk/zosmf.py b/src/zosmf/zowe/zosmf_for_zowe_sdk/zosmf.py index 31386953..99fbedf0 100644 --- a/src/zosmf/zowe/zosmf_for_zowe_sdk/zosmf.py +++ b/src/zosmf/zowe/zosmf_for_zowe_sdk/zosmf.py @@ -25,8 +25,8 @@ class Zosmf(SdkApi): The z/OSMF connection object (generated by the ZoweSDK object) """ - def __init__(self, connection: dict, log = False): - super().__init__(connection, "/zosmf/info", logger_name=__name__) + def __init__(self, connection: dict, log = True): + super().__init__(connection, "/zosmf/info", logger_name=__name__, log=log) def get_info(self) -> ZosmfResponse: """