From 584fa9e11365c101b64e74888330cbf13170a7ac Mon Sep 17 00:00:00 2001 From: hongwei Date: Mon, 18 Dec 2023 11:34:09 +0100 Subject: [PATCH 1/2] bugfix/use the example logback files and removed the default ones --- .gitignore | 1 - README.md | 6 +++--- obp-api/src/main/resources/logback-test.xml | 12 ------------ .../{test.logback.xml => logback-test.xml.example} | 0 .../{default.logback.xml => logback.xml.example} | 0 5 files changed, 3 insertions(+), 16 deletions(-) delete mode 100644 obp-api/src/main/resources/logback-test.xml rename obp-api/src/main/resources/{test.logback.xml => logback-test.xml.example} (100%) rename obp-api/src/main/resources/{default.logback.xml => logback.xml.example} (100%) diff --git a/.gitignore b/.gitignore index eeb1c2624..85cb4bc55 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,6 @@ .project .cache target -obp-api/src/main/resources/ obp-api/src/test/resources/** !obp-api/src/test/resources/frozen_type_meta_data *.iml diff --git a/README.md b/README.md index 5beb3d69e..683684bc1 100644 --- a/README.md +++ b/README.md @@ -190,9 +190,9 @@ Note: Your Java environment may need to be setup correctly to use SSL Restart OBP-API, if you get an error, check your Java environment can connect to the host over SSL. -Note you can change the log level in: - - /obp-api/src/main/resources/default.logback.xml (try TRACE or DEBUG) - - /obp-api/src/main/resources/logback-test.xml (try TRACE or DEBUG) +Note you can copy the following example files to prepare your own configurations: + - /obp-api/src/main/resources/logback.xml.example -> /obp-api/src/main/resources/logback.xml (try TRACE or DEBUG) + - /obp-api/src/main/resources/logback-test.xml.example -> /obp-api/src/main/resources/logback-test.xml (try TRACE or DEBUG) There is a gist / tool which is useful for this. Search the web for SSLPoke. Note this is an external repository. diff --git a/obp-api/src/main/resources/logback-test.xml b/obp-api/src/main/resources/logback-test.xml deleted file mode 100644 index 871aea062..000000000 --- a/obp-api/src/main/resources/logback-test.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - %d{yyyy-MM-dd HH:mm:ss} %t %c{0} [%p] %m%n - - - - - - - \ No newline at end of file diff --git a/obp-api/src/main/resources/test.logback.xml b/obp-api/src/main/resources/logback-test.xml.example similarity index 100% rename from obp-api/src/main/resources/test.logback.xml rename to obp-api/src/main/resources/logback-test.xml.example diff --git a/obp-api/src/main/resources/default.logback.xml b/obp-api/src/main/resources/logback.xml.example similarity index 100% rename from obp-api/src/main/resources/default.logback.xml rename to obp-api/src/main/resources/logback.xml.example From 410e56b0507b4e8f509f5c4395c00ab01fc9898e Mon Sep 17 00:00:00 2001 From: hongwei Date: Mon, 18 Dec 2023 11:35:00 +0100 Subject: [PATCH 2/2] refactor/revoke the .gitignore change --- .gitignore | 1 + README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 85cb4bc55..eeb1c2624 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ .project .cache target +obp-api/src/main/resources/ obp-api/src/test/resources/** !obp-api/src/test/resources/frozen_type_meta_data *.iml diff --git a/README.md b/README.md index 683684bc1..ec91bfc5c 100644 --- a/README.md +++ b/README.md @@ -190,7 +190,7 @@ Note: Your Java environment may need to be setup correctly to use SSL Restart OBP-API, if you get an error, check your Java environment can connect to the host over SSL. -Note you can copy the following example files to prepare your own configurations: +Note: You can copy the following example files to prepare your own configurations - /obp-api/src/main/resources/logback.xml.example -> /obp-api/src/main/resources/logback.xml (try TRACE or DEBUG) - /obp-api/src/main/resources/logback-test.xml.example -> /obp-api/src/main/resources/logback-test.xml (try TRACE or DEBUG)