Skip to content

Log with lower severity when resources.json is not found #650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
paukert opened this issue Apr 5, 2025 · 2 comments
Open

Log with lower severity when resources.json is not found #650

paukert opened this issue Apr 5, 2025 · 2 comments

Comments

@paukert
Copy link

paukert commented Apr 5, 2025

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 Docker file for V3 #451 (comment), 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:

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.
@baroso
Copy link

baroso commented Apr 14, 2025

@paukert, if you need a quick fix for this problem (so that the server runs), I've made a few changes here: d029d00

@paukert
Copy link
Author

paukert commented Apr 16, 2025

@baroso, thanks, the server works even if the resources.json file is not found, but it is a little bit annoying to get warning message with every exported chart (without patch applied)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants