cardano-foundation / cardano-foundation/cardano-rosetta-java

Expose log config env varialbes in docker

Open
#514 2 comments 0 reactions 1 assignee Claimed by @Sotatek-HenryDo View on GitHub
potentially low effort
Dominant language
Java
Stars
26
Forks
15
Avg merge
5d 3h
Merged PRs (30d)
2

Description

## Context & versions

The applicaiton.yaml for logging, the env variables are not set in the docker-compose-api.yaml. hence changing the value of LOG=INFO,
LOG_FILE_PATH=/var/log/rosetta-java
LOG_FILE_NAME=/var/log/rosetta-java/rosetta-java.log
LOG_FILE_MAX_SIZE=10MB
LOG_FILE_MAX_HISTORY=10

cannot be configured.

## Steps to reproduce
set LOG=OFF

## Actual behavior
set LOG=OFF still logs data

## Expected behavior
set LOG=OFF should not log data

More points -
There is permission issue with /var/log/rosetta-java and hence I think the files are generated at /app.
even if LOG=OFF the file is generated.

If needed, we can also add check if LOG=OFF pass the file value as empty so that the file is not generated at all.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.