From 57ededb45053d56921d8558b2756444c1e0286a1 Mon Sep 17 00:00:00 2001 From: Joshan Mahmud Date: Sat, 24 Aug 2024 21:13:12 +0100 Subject: [PATCH 1/2] Setting ENABLE_LOG4J2_DEBUG to be a number (instead of false). In addition, setting the host's port for FlowManagementUI to be on 5001 which is less likely to be a reserved port. Have also included logs to be excluded from .gitignore due to corder worker mounting as a volume and fails if it does not exist --- .gitignore | 2 ++ config/combined-worker-compose.yaml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b9a99ba..7f66788 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,8 @@ local.properties lib/quasar.jar **/logs/* +#will include a logs file which is written to by corda workers +!logs/ ### JetBrains template # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio diff --git a/config/combined-worker-compose.yaml b/config/combined-worker-compose.yaml index da2495d..37a4ceb 100644 --- a/config/combined-worker-compose.yaml +++ b/config/combined-worker-compose.yaml @@ -61,7 +61,7 @@ services: JAVA_TOOL_OPTIONS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 LOG4J_CONFIG_FILE: config/log4j2.xml CONSOLE_LOG_LEVEL: info - ENABLE_LOG4J2_DEBUG: false + ENABLE_LOG4J2_DEBUG: 0 command: [ "-mbus.busType=KAFKA", "-mbootstrap.servers=kafka:29092", @@ -84,4 +84,4 @@ services: context: ../FlowManagementUI dockerfile: Dockerfile ports: - - 5000:5000 \ No newline at end of file + - 5001:5000 \ No newline at end of file From 50e7628a0c9c57a0320f4c4576343cef05542a3e Mon Sep 17 00:00:00 2001 From: Joshan Mahmud Date: Sat, 24 Aug 2024 22:21:46 +0100 Subject: [PATCH 2/2] Adding .gitignore to logs folder --- .gitignore | 4 ++-- logs/.gitignore | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 logs/.gitignore diff --git a/.gitignore b/.gitignore index 7f66788..95004c6 100644 --- a/.gitignore +++ b/.gitignore @@ -19,9 +19,9 @@ local.properties lib/quasar.jar -**/logs/* #will include a logs file which is written to by corda workers -!logs/ +!logs/ +#**/logs/* ### JetBrains template # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio diff --git a/logs/.gitignore b/logs/.gitignore new file mode 100644 index 0000000..bf0824e --- /dev/null +++ b/logs/.gitignore @@ -0,0 +1 @@ +*.log \ No newline at end of file