• Milo (unregistered)

    The "fun" part of all this, is that log object is almost certainly nil. About the only way it isn't nil is if the error is some kind of minor non-fatal issue, and I doubt that is the case here. In short, if there is an error the program will almost certainly crash due to trying to use a nil object.

  • (nodebb)

    Trying to log the message about an error with the logger using the same logger is a harmful way of shaming the logger into stating to work. We need to avoid stigmatizing broken loggers.

  • Hartmut Holzgraefe (unregistered)

    Somewhat reminds me of:

    mysql_query("...some SQL...") or die(); printf(mysql_error());

    seen in a PHP project a decade ago.

    Developer claimed that the application was working fine as no error message was printed ...

  • my name is missing (unregistered)

    If a logger fails in the forest, does it make a sound?

  • Programmer Robot 10C-32 (unregistered)

    Always reminds me of this Seinfeld exchange:

    K: "I was returning some pants. I took a short cut in a subway tunnel and fell in some mud, ruining my pants. The very pants I was returning." E: "I don't understand - you were wearing the pants you were returning?" C: "Well, I guess I was." E: "What were you going to wear home?" K: "Elaine, are you listening? I never even got there."

  • Patrick (unregistered)

    So, "Programmer Robot 10C-32",... I guess the error is that "C" is saying "well I guess I was" when "K" was the one returning the pants?

  • Ulysses (unregistered)

    I submitted a good WTF article ages ago, but flavorless crud like this continues to get posted. Sigh.

  • (nodebb)

    The advertisement starts with "Forget logs". Pun intended?

  • Tinkle (unregistered)

    If the logger logs the logs who logs the logger?

  • Little Bobby Tables (unregistered)

    Error log, error log

    Every morning you greet me

    Gigabyte, full of sh1te

    I'm just going to delete thee

    Running so slow you just bloomin' grow

    Bloomin' grow for ever

    Error log, error log

    Fill my disk up for ever

  • (nodebb)

    Was this code a Go or a No Go?

  • Programmer Robot 10C-32 (unregistered) in reply to Patrick

    In my head I was thinking 'K', my fingers typed 'C'. Had I realized the formatting was going to get screwed up, I would have been more preoccupied by that and got it completely wrong.

  • (nodebb) in reply to Ulysses

    I feel the same about "same old lorem ipsum crap" Fridays.

Leave a comment on “Log Every Error”

Log In or post as a guest

Replying to comment #504952:

« Return to Article