Skip to content

How to enable debug and html trace

Alexandre Beloin edited this page Dec 14, 2020 · 1 revision

Information

To enable debug in Flaresolverr, 2 environnement variables need to be added/modified:

  • LOG_LEVEL=debug
  • LOG_HTML=true

Instruction for Docker cli

N.B.: This is an example to show the location of where to put the variable and shouldn't just be copy/pasted

docker run -d \
  --name=flaresolverr \
  -e LOG_LEVEL=debug \
  -e LOG_HTML=true \
  --restart unless-stopped \
  ghcr.io/flaresolverr/flaresolverr:latest

See Docker's documentation for more information on passing environnement variable

Instruction for Docker compose(need to edit docker-compose.yml)

N.B.: This is an example to show the location of where to put the variable and shouldn't just be copy/pasted

---
version: "2.1"
services:
  flaresolverr:
    # DockerHub mirror flaresolverr/flaresolverr:latest
    image: ghcr.io/flaresolverr/flaresolverr:latest
    container_name: flaresolverr
    environment:
      # Used to change the verbosity of the logging
      - LOG_LEVEL=debug
      - LOG_HTML=true
      # Enables hcaptcha-solver => https://github.com/JimmyLaurent/hcaptcha-solver
      #- CAPTCHA_SOLVER=hcaptcha-solver
      # Enables CaptchaHarvester => https://github.com/NoahCardoza/CaptchaHarvester
      #- CAPTCHA_SOLVER=harvester
      #- HARVESTER_ENDPOINT=https://127.0.0.1:5000/token
    ports:
      - 8191:8191
    restart: unless-stopped 

See Docker's Compose documentation for more information on passing environnement variable