Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Set Chromium log_level To Suppress Chromium Logs #10952

Closed

Description

@joefitzgerald

Prerequisites

Description

Currently, the chromium log_level is not explicitly set. This means that the log_level is implicitly 0, which is the most verbose setting. We should set [1] the log_level to a level [2] that suppresses INFO and WARNING messages, at a minimum.

[1] app.commandLine.appendSwitch 'log-level', '<SOME VALUE HERE>'
[2] https://chromium.googlesource.com/chromium/src/+/master/base/logging.h#292

Steps to Reproduce

  1. Launch atom from the terminal / command line
  2. Observe messages like [852:0224/093645:WARNING:accelerator_util.cc(118)] Invalid accelerator token: command and [2804:0224/093645:ERROR:renderer_main.cc(200)] Running without renderer sandbox

Expected behavior: Show only meaningful log messages when atom is launched from the terminal or command line

Actual behavior: Spurious log messages are displayed when atom is launched from the terminal or command line.

Versions

<= 1.7.0-dev

See Also

Activity

  1. maxbrunsfeld commented on Feb 24, 2016

    @maxbrunsfeld
    Contributor

    👍 Thanks for tracking this down. It'd be nice to ✂️ the verbosity.

  2. bolinfest commented on Feb 27, 2016

    @bolinfest
    Contributor

    I tried working around this by doing the following in a test:

    require('fs').createWriteStream(
      /* path */ null,
      { fd: 1, autoClose: false, flags: 'a' }
    ).write('message!!!');

    This seems to crash Atom. Any ideas why? Is there another workaround I can use?

  3. bolinfest commented on Feb 27, 2016

    @bolinfest
    Contributor

    Hmm, at least I was able to find this in the logs:

    Atom Helper: guarded fd exception: fd 1 code 0x1 guard 0x7fff89ad82a8

    Not sure what's causing that, though.

  4. lock commented on Mar 30, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  5. locked and limited conversation to collaborators on Mar 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions