Skip to content

How to turn off htmlunit logging? #85

Closed
@php-coder

Description

@php-coder

I didn't found how to turn off htmlunit logging. At this moment it produces a lot of noise:

ERROR] runtimeError: message=[An invalid or illegal selector was specified (selector: '*,:x' error: Invalid selector: :x).] sourceName=[http://127.0.0.1:8080/public/jquery/1.9.1/jquery.min.js] line=[4] lineSource=[null] lineOffset=[0]
[WARNING] CSS error: 'http://127.0.0.1:8080/public/bootstrap/3.3.7/css/bootstrap.min.css' [5:56298] Error in expression; ':' found after identifier "progid".
[WARNING] CSS error: 'http://127.0.0.1:8080/public/bootstrap/3.3.7/css/bootstrap.min.css' [5:113847] Error in expression; ':' found after identifier "progid".
[WARNING] CSS error: 'http://127.0.0.1:8080/public/bootstrap/3.3.7/css/bootstrap.min.css' [5:114390] Error in expression; ':' found after identifier "progid".
[WARNING] CSS error: 'http://127.0.0.1:8080/public/bootstrap/3.3.7/css/bootstrap.min.css' [5:115558] Invalid color "#000\9".
[ERROR] runtimeError: message=[An invalid or illegal selector was specified (selector: '*,:x' error: Invalid selector: :x).] sourceName=[http://127.0.0.1:8080/public/jquery/1.9.1/jquery.min.js] line=[4] lineSource=[null] lineOffset=[0]

I have src/test/resources/logback-test.xml file where these messages are turned off but htmlunit doesn't use this file.

How to manage logging for htmlunit in this case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions