marvin icon indicating copy to clipboard operation
marvin copied to clipboard

No output from logging in DEBUG mode

Open chrisgoddard opened this issue 1 year ago • 2 comments

First check

  • [X] I added a descriptive title to this issue.
  • [X] I used the GitHub search to try to find a similar issue and didn't find one.
  • [X] I searched the Marvin documentation for this issue.

Bug summary

I'm doing some testing of Marvin. I set logging mode to DEBUG using environment variable, directly setting the settings attribute marvin.settings.log_level and even directly setting the debug level on the marvin logger from getLogger - I still don't see any output.

I've tried testing in both Jupyter and a plain script.

My own logging works (plain and loguru) as well as openai's logs when I set openai.log='debug'

Am I missing something obvious here?

Reproduction

n/a

Error

No response

Versions

Version:                1.5.0
Python version:         3.11.5
OS/Arch:                darwin/arm64

Additional context

No response

chrisgoddard avatar Sep 28 '23 16:09 chrisgoddard

hey @chrisgoddard I can recreate on my end - I'll take a look and see if I can't get to the bottom of it. Thanks for flagging!

aaazzam avatar Sep 28 '23 20:09 aaazzam

@chrisgoddard I was having the same issue.

If you use the following env vars it should allow you to see the logs:

MARVIN_LOG_LEVEL=DEBUG MARVIN_VERBOSE=True

Hope this helps until the issue is resolved and you can do it at runtime :)

bkuhn25 avatar Nov 19 '23 23:11 bkuhn25