bitcrowd / chromic_pdf

Convenient HTML to PDF/A rendering library for Elixir based on Chrome & Ghostscript
Apache License 2.0
409 stars 37 forks source link

Question: Chromium "platform policies" #323

Closed silverdr closed 1 month ago

silverdr commented 1 month ago

Not really a ChromicPDF issue but maybe anyone using it had similar problem and solved it?

I keep getting my logs littered with "infos" like:

Aug 06 09:19:59 cld bash[136293]: [0806/091959.530694:INFO:config_dir_policy_loader.cc(118)] Skipping mandatory platform policies because no policy file was found at: /etc/chromium/policies/managed
Aug 06 09:19:59 cld bash[136293]: [0806/091959.530742:INFO:config_dir_policy_loader.cc(118)] Skipping recommended platform policies because no policy file was found at: /etc/chromium/policies/recommended
Aug 06 09:34:59 cld bash[136293]: [0806/093459.538715:INFO:config_dir_policy_loader.cc(118)] Skipping mandatory platform policies because no policy file was found at: /etc/chromium/policies/managed
Aug 06 09:34:59 cld bash[136293]: [0806/093459.538766:INFO:config_dir_policy_loader.cc(118)] Skipping recommended platform policies because no policy file was found at: /etc/chromium/policies/recommended
Aug 06 09:49:59 cld bash[136293]: [0806/094959.638708:INFO:config_dir_policy_loader.cc(118)] Skipping mandatory platform policies because no policy file was found at: /etc/chromium/policies/managed
Aug 06 09:49:59 cld bash[136293]: [0806/094959.638759:INFO:config_dir_policy_loader.cc(118)] Skipping recommended platform policies because no policy file was found at: /etc/chromium/policies/recommended
[... and so on]

I tried searching around the web and creating what would be "policy file(s)" but to no change at all. Anyone fixed that?

maltoe commented 1 month ago

Not really a ChromicPDF issue :) But it seems you're running in discard_stderr: false. In our apps, we've never had that set in prod, Chromium is just way too noisy