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

Convert all stdout/stderr prints to use Log functions #613

Closed

Description

@ljbade

There is still some code that writes to stdout/stderr instead of the Log functions. For example tile_parser.cpp

This means important error messages never make it to the log on Android and makes debugging harder.

So all code using some sort of print function needs to be found and changed to Log.

Also anywhere that throws a C++ exception needs to also print a Log::Error before it throws in case we don't catch the exception and we crash instead.

Activity

  1. changed the title [-]Convert all stdout/stderr prints to use Log functinos[/-] [+]Convert all stdout/stderr prints to use Log functions[/+] on Nov 18, 2014
  2. ljbade commented on Nov 19, 2014

    @ljbade
    ContributorAuthor

    Will make a branch on master for this.

  3. ljbade commented on Jan 27, 2015

    @ljbade
    ContributorAuthor

    Still need to get on to this.

    However I notice some more printfs have crept in, /cc @ansis

  4. added this to the milestone on Feb 17, 2015
  5. self-assigned this
    on Mar 10, 2015
  6. tmpsantos commented on Mar 10, 2015

    @tmpsantos
    Contributor

    @ljbade I can take this one as I'm working also on #882

  7. ljbade commented on Mar 11, 2015

    @ljbade
    ContributorAuthor

    Cool @tmpsantos that would be awesome. I found their was a mix of C++ style cout/cerr and the various C APIs such as *printf and a few others.

    You will probably want to regex the repo to find them all.

  8. ljbade commented on Mar 11, 2015

    @ljbade
    ContributorAuthor

    @jfirebaugh after they have been converted, we will have to make sure everyone knows not to commit code not using the Log. I will try to keep an eye on this in PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions