Skip to content

How to override bot to only output Error or Abort logs #153

@vladdoster

Description

@vladdoster

What is your question?

I am having trouble overriding the bot logger. Ideally, I would only want to output ERROR messages unless specified otherwise.

I think I chased it down to here:

I tried sub-classing client. Subclass client and then override the __init__(): method to call set_verbositywith my desiredLOG_LEVEL? I also tried setting env variables to SINGULARITY_MESSAGELEVEL&MESSAGELEVEL` but didnt seem to get anywhere. I am not too sure how to proceed. Any ideas on how to approach this? I am all ears!

Also I don't quite understand how the Client.build(stream=True) allows it to error or else it will just proceed. How does returning the generator stream allow it to error? Is it not run in bg vs fg when streamed thus allows to error in same python process?

If the documentation doesn't answer your question, where do you think it would be appropriate to add (i.e., where did you go looking for it?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions