Can't enable DEBUG logging in Selenium Docker

279 views
Skip to first unread message

Alexey Pavlunin

unread,
Nov 13, 2021, 3:25:41 PM11/13/21
to Selenium Users
Hello. I faced some strange bugs during tests in Selenium running in Docker. I tried to enable debug logging in containers, but they doesn't start normally after I changed docker-compose-v3.yml. Here's part of my yaml:

services:
  chrome:
    shm_size: 2gb
    depends_on:
      - selenium-hub
    environment:
      - SE_EVENT_BUS_HOST=selenium-hub
      - SE_EVENT_BUS_PUBLISH_PORT=4442
      - SE_EVENT_BUS_SUBSCRIBE_PORT=4443
      - SE_NODE_GRID_URL=http://localhost:4444
    ports:
      - "6900:5900"

Then I added string SE_OPTS="--log-level FINE" to environment section in compose.yml as said in docs
But after start chrome container is failing with error: Was passed main parameter '"--log-level' but no main parameter was defined in your arg class
I tried different combination of parameters, but non of them worked. Only when I changed it to SE_NODE_OPTS="--log-level FINE" container started successfully.
But there are no DEBUG messages in the log output, only INFO level. What should I do to get DEBUG messages?
And is there a way to enable it for selenium hub container?
Reply all
Reply to author
Forward
0 new messages