in reply to Re^3: log level in modules
in thread log level in modules

My apologies if "thread" was the incorrect term. Yes, I'm aware of what happens when fork() is used. Part of the signal handler is to pass on the signal to all the children (copies).

As stated in the original post, there is no problem with changing the logging level for the parent or children (copies). The change in logging level is reflected in all these entities. It's the modules that don't want to cooperate.

Replies are listed 'Best First'.
Re^5: log level in modules
by ikegami (Patriarch) on Aug 21, 2009 at 19:06 UTC

    So why do you think it has anything to do with forking? The problem occurs entirely inside each process from what you now say.

    So why do you think it has anything to do with signals?

    So far, all you've told us is

    Changing the log level of $logger doesn't affect the logging level in the logger returned by get_logger

    And I'm here asking "And....?"

    It seems your problem could be recreated in 5 lines. Why didn't you post these?

      I'm confused. Are you trying to help or get off on some power trip?

      I ask questions here because I know someone has the answer. But it never fails: ask a simple question and you get asked for your life story. Ask a question with context then people worry about everything but the question.

      If you know why get_logger isn't getting the modified logger, great! Tell me.

      If you know how to fix my problem, great! Tell me.

      If you're trying to give constructive feedback on my post so I can better ask any future questions, your failing.

        If you know how to fix my problem, great! Tell me.

        I would if I knew. I don't, so I asked you question to help fix it. Maybe you should consider answering them instead of this ...whatever it is?

        I don't know why you expect changes to some variable to have some some effect on the return value of get_logger. You haven't shown anything tying the two together. You provided so little information that all I can do is rule out causes until you provide more information.

        Waiting for answers to:

        • When you say "forks", are you actually referring to the creation of new threads? (Eventually answered)
        • Why do you think it has anything to do with forking?
        • Why do you think it has anything to do with signals?
        • Why do you think changes to one variable should have some effect in the return value of get_logger
        • Where can I find a minimal runnable demonstration of the problem?