Skip to content

Our builders, deployers, and the router need to stop using glog #5788

Closed

Description

@0xmichalis

sti code has already switched for >3 verbosity logs, the same thing should happen for our builders, deployers,and router.

sti changes:
openshift/source-to-image#321
openshift/source-to-image#323

Or else:

Installing sinatra (1.4.5)
Installing sinatra-activerecord (2.0.3)
Using bundler (1.3.5)
Your bundle is complete!
It was installed into ./bundle
---> Cleaning up unused ruby gems ...
I1109 11:11:57.220593       1 sti.go:213] Using provided push secret for pushing 172.30.104.214:5000/test/origin-ruby-sample:latest image
I1109 11:11:57.220704       1 sti.go:217] Pushing 172.30.104.214:5000/test/origin-ruby-sample:latest image ...
I1109 11:12:56.237943       1 sti.go:233] Successfully pushed 172.30.104.214:5000/test/origin-ruby-sample:latest

cc: @mfojtik @bparees

Activity

  1. mfojtik commented on Nov 9, 2015

    @mfojtik
    Contributor

    @Kargakis +1 I think by default we should keep the logs glog free unless there is an error logged. Also we should do this in sync with s2i changes, so everything below V(3) will not get the glog prefix and everything else does.

  2. bparees commented on Nov 9, 2015

    @bparees
    Contributor

    @mfojtik you're not going to be able to do what you did in s2i because there are a ton of log statements you'd have to if/else.

  3. bparees commented on Nov 9, 2015

    @bparees
    Contributor

    i don't know why you guys hate useful logging information so much.

  4. mfojtik commented on Nov 9, 2015

    @mfojtik
    Contributor

    @bparees I don't hate the timestamps (they are useful) I just hate the sti.go:XYZ prefix which is not that useful for normal users and it is duplicated. The prefix also makes the log a little bit messy in the result for 'regular users'

  5. 0xmichalis commented on Nov 9, 2015

    @0xmichalis
    ContributorAuthor

    i don't know why you guys hate useful logging information so much.

    Well, because --timestamps ?

  6. bparees commented on Nov 9, 2015

    @bparees
    Contributor

    Well, because --timestamps ?

    doesn't give me filenames or line numbers.

  7. 0xmichalis commented on Nov 9, 2015

    @0xmichalis
    ContributorAuthor

    Why a user should care about these info? I see how filenames and line
    numbers are useful for debugging but these are logs that end up in clients
    and people won't really have any use for them anyway.

    On Mon, Nov 9, 2015 at 5:20 PM, Ben Parees [email protected] wrote:

    Well, because --timestamps ?

    doesn't give me filenames or line numbers.

    —
    Reply to this email directly or view it on GitHub
    #5788 (comment).

  8. bparees commented on Nov 9, 2015

    @bparees
    Contributor

    Why a user should care about these info? I see how filenames and line numbers are useful for debugging but these are logs that end up in clients and people won't really have any use for them anyway.

    because logs end up coming to us when things break and having to send the user back to recreate it so we can get the information is not a good experience.

  9. mfojtik commented on Nov 9, 2015

    @mfojtik
    Contributor

    @bparees we can always just grep the line of code, I assume as we go the numbers in logs might not always reflect the reality

  10. 0xmichalis commented on Dec 10, 2015

    @0xmichalis
    ContributorAuthor

    I think this issue equally applies for the deployers and the router (we don't have any control over the registry logs or else they should be the same).

  11. changed the title [-]Our builders need to stop using glog[/-] [+]Our builders, deployers, and the router need to stop using glog[/+] on Dec 10, 2015
  12. smarterclayton commented on Feb 15, 2016

    @smarterclayton
    Contributor

    The rough use case is "when I want debug logs, I ask for debug logs, otherwise, show me the info I need". I don't think filename and warning level are for the normal case. I think those are debug. So someone has to ask for them.

  13. 0xmichalis commented on May 11, 2016

    @0xmichalis
    ContributorAuthor

    #8787 updates our deployers

  14. 0xmichalis commented on May 11, 2016

    @0xmichalis
    ContributorAuthor

    #8786 updates the builders

  15. 0xmichalis commented on Jun 10, 2016

    @0xmichalis
    ContributorAuthor

    We still need to update the router logs @pweil- @ramr

  16. smarterclayton commented on Jun 10, 2016

    @smarterclayton
    Contributor

    Router can continue using glog. It's infra, not user facing. Same for
    registry and keepalived.

    On Jun 10, 2016, at 5:39 AM, Michail Kargakis [email protected]
    wrote:

    We still need to update the router logs @pweil- https://github.com/pweil-
    @ramr https://github.com/ramr

    —
    You are receiving this because you commented.
    Reply to this email directly, view it on GitHub
    #5788 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe/ABG_p9Z0Z6L5YuO-b3PqxOGnzwIDKimkks5qKTDHgaJpZM4Geg4y
    .

  17. 0xmichalis commented on Jun 10, 2016

    @0xmichalis
    ContributorAuthor

    Then this issue can be closed.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions