Skip to content

Commit e325a07

Browse files
authored
OZ-446: Remove logging override so we can use the log provide by the EIP client (#14)
1 parent bd35e67 commit e325a07

File tree

3 files changed

+68
-1
lines changed

3 files changed

+68
-1
lines changed

erpnext-openmrs/dev/.env

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# OpenMRS configuration
2+
OPENMRS_URL=localhost:8080/openmrs
3+
OPENMRS_USER=superman
4+
OPENMRS_PASSWORD=Admin123
5+
OPENMRS_RESULTS_ENCOUNTER_TYPE_UUID=
6+
OPENMRS_IDENTIFIER_TYPE_UUID=
7+
OPENMRS_CONCEPT_COMPLEX_UUID=
8+
9+
# Odoo configuration
10+
ODOO_URL=localhost:8069
11+
ODOO_USER=admin
12+
ODOO_PASSWORD=admin
13+
ODOO_DATABASE=odoo
14+
EMR_WEIGHT_CONCEPT=
15+
CREATE_CUSTOMER_IF_NOT_EXIST=false
16+
ODOO_CUSTOMER_EXTERNAL_ID=comment
17+
ODOO_CUSTOMER_DOB_FIELD=
18+
ODOO_CUSTOMER_WEIGHT_FIELD=
19+
ODOO_ENABLE_EXTRA_CUSTOMER_FIELDS_ROUTE=false
20+
ODOO_ENABLE_EXTRA_QUOTATION_FIELDS_ROUTE=false
21+
22+
# Bahmni specific
23+
BAHMNI_TEST_ORDER_TYPE_UUID=
24+
25+
# General EIP configuration
26+
EIP_WATCHED_TABLES=patient,person_name,person_address,patient_identifier,orders,test_order,drug_order
27+
DB_EVENT_DESTINATIONS_ODOO=direct:odoo-event-listener
28+
EIP_DB_NAME_ODOO=openmrs_eip_mgt_odoo
29+
EIP_DB_USER_ODOO=openmrs_eip_mgt_odoo
30+
EIP_DB_PASSWORD_ODOO=password
31+
32+
# OAuth2 Client
33+
OAUTH_ENABLED=true
34+
OAUTH_CLIENT_ID=eip
35+
OAUTH_CLIENT_SECRET=_demo_sample_key_to_be_replaced_
36+
OAUTH_CLIENT_SCOPE=email
37+
OAUTH_ACCESS_TOKEN_URL=http://localhost:8080/openmrs/oauth/token
38+
39+
# Debezium MySQL Connector (CDC) configuration
40+
MYSQL_ADMIN_USER=admin
41+
MYSQL_ADMIN_USER_PASSWORD=password
42+
43+
# OpenMRS Datasource configuration
44+
OPENMRS_DB_USER=openmrs
45+
OPENMRS_DB_PASSWORD=password
46+
OPENMRS_DB_NAME=openmrs
47+
OPENMRS_DB_HOST=localhost
48+
OPENMRS_DB_PORT=3306
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#
2+
# Copyright © 2024, Ozone HIS <[email protected]>
3+
#
4+
# This Source Code Form is subject to the terms of the Mozilla Public
5+
# License, v. 2.0. If a copy of the MPL was not distributed with this
6+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
7+
#
8+
9+
version: '3'
10+
services:
11+
eip-client:
12+
container_name: ozone-eip-client
13+
env_file:
14+
- .env
15+
image: mekomsolutions/eip-client
16+
ports:
17+
- "8085:8080"
18+
volumes:
19+
- ../target/eip-erpnext-openmrs-1.3.0-SNAPSHOT.jar:/eip-client/routes/eip-erpnext-openmrs-1.3.0-SNAPSHOT.jar

erpnext-openmrs/src/main/resources/config/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ db-event.retry.initial.delay=${DB_EVENT_RETRY_INITIAL_DELAY:120000}
1616
#
1717
# Uncomment this to use console logging otherwise defaults to the logback.xml file located on the classpath which is
1818
# configured to log to ${eip.home}/logs/openmrs-eip.log
19-
logging.config=classpath:logback-console.xml
19+
# logging.config=classpath:logback-console.xml
2020

2121
# Logging level for the application
2222
openmrs.eip.log.level=INFO

0 commit comments

Comments
 (0)