Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

lib/core/exception_handler.dart uses wrong log level for exceptions #1706

Open
@goderbauer

Description

@goderbauer

lib/core/exception_handler.dart uses "print" to log an exception. This will result in a log entry with log level "INFO" in the browser's console. That's not really appropriate for an exception, which should really have log level "ERROR".

This is a problem, because we are checking at the end of each webdriver test, if there are any exceptions present in the browser. For this, we go through the log entries in the console and if we find one that has a log level of ERROR, we mark the test as failed. Unfortunately, due to the bug described above we miss some exceptions because they don't have the appropriate log level. Therefore, some tests are marked as passed even though they really failed and there is no good way of detecting this if exceptions are not logged with the appropriate log level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions