Skip to content

Commit

Permalink
Logbook config
Browse files Browse the repository at this point in the history
  • Loading branch information
slominskir committed Jan 15, 2025
1 parent 92b0d54 commit abbe6e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,12 @@ This application requires a Java 11+ JVM and standard library to run, plus a Jav
Wildfly must be pre-configured before the first deployment of the app. The [wildfly bash scripts](https://github.com/JeffersonLab/wildfly#configure) can be used to accomplish this. See the [Dockerfile](https://github.com/JeffersonLab/srm/blob/main/Dockerfile) for an example.

### Runtime
Uses the [Smoothness Environment Variables](https://github.com/JeffersonLab/smoothness#environment-variables).
Uses the [Smoothness Environment Variables](https://github.com/JeffersonLab/smoothness#environment-variables) plus the following application specific:

Additionally, the scheme, host name and port of the CEBAF Element Database (CED) server is configured with environment variable `CED_SERVER_URL`.
| Name | Description |
|----------------|---------------------------------------------------------------------------------------------------------------------------------|
| SRM_BOOKS_CSV | Comma Separated Logbooks to post CREATED/DELETED entries to. Defaults to TLOG. Generally should be set to ELOG in production. |
| CED_SERVER_URL | The scheme, host name and port of the CEBAF Element Database (CED) |

There are some [Settings](https://github.com/JeffersonLab/srm/blob/87cb8b7d1a9b0e2e36cc68b34eaefe02478bb89a/docker/oracle/setup/02_ddl.sql#L256-L264) in the database as well.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,13 @@ private Long createOpsPr(

String subject = "System Readiness (HCO) Update for " + system.getName();

String logbooks = System.getenv("LOGBOOK_OPS_BOOKS_CSV");
String logbooks = System.getenv("SRM_BOOKS_CSV");

if (logbooks == null || logbooks.isEmpty()) {
logbooks = "TLOG";
LOGGER.log(
Level.WARNING,
"Environment variable 'LOGBOOK_OPS_BOOKS_CSV' not found, using default TLOG");
"Environment variable 'SRM_BOOKS_CSV' not found, using default TLOG");
}

ProblemReport report =
Expand Down

0 comments on commit abbe6e8

Please sign in to comment.