highcharts / highcharts/node-export-server

Log with lower severity when resources.json is not found

Open
#650 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
369
Forks
266
PR merge metrics
No merged PRs in 30d

Description

Export server version: v5.0.0
Highcharts version: 10.2.1

**Configuration:**
- `CUSTOM_LOGIC_ALLOW_CODE_EXECUTION = true` (code execution is allowed to support passing JS functions to formatters)
- `--enableServer 1` (as was already mentioned in https://github.com/highcharts/node-export-server/issues/451#issuecomment-2008524099, setting env variable `SERVER_ENABLE` does not work and it has to be passed as parameter in ENTRYPOINT)

**Current behaviour:**
When code execution is allowed, the server assumes that there should be `resources.json` file and if there is none, it issues a warning.

**Expected behaviour:**
Server does not log message with warning severity.

**Export server logs:**
```text
2025-04-05 14:52:14 Sat Apr 05 2025 12:52:14 GMT+0000 [warning] - [chart] Unable to load the default resources.json file.
```

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.