Changing log level error

Hi, I would like to check if I want to change the log level correctly for uploadthing. I use UPLOADTHING_LOG_LEVEL=Warning set in .env file. Error I'm getting:
timestamp=2025-02-26T03:43:01.987Z level=ERROR fiber=#174 message="Invalid log level" error="{
\"_op\": \"InvalidData\",
\"path\": [
\"logLevel\"
],
\"message\": \"Expected a log level but received Warning\"
}"
timestamp=2025-02-26T03:43:01.987Z level=ERROR fiber=#174 message="Invalid log level" error="{
\"_op\": \"InvalidData\",
\"path\": [
\"logLevel\"
],
\"message\": \"Expected a log level but received Warning\"
}"
5 Replies
webdevkaleem
webdevkaleem2mo ago
Migrate from v6 to v7 - UploadThing Docs
Version 7 of UploadThing is a big release backed by all new infrastructure along with a nearly full rewrite of the internals.
webdevkaleem
webdevkaleem2mo ago
see if you're using v6 or v7 in v6 it's warn in v7 it's Warning
Zebhoggr
ZebhoggrOP2mo ago
We start using uploadthing with v7.5.2 and we should not have v6 cached. But using warn does remove the error from terminal but will raise an error in code. Issue: https://github.com/pingdotgg/uploadthing/issues/1163
webdevkaleem
webdevkaleem2mo ago
I received the same error messages when I tried to reproduce your error I added description of it onto your github issue
Zebhoggr
ZebhoggrOP2mo ago
That's great!

Did you find this page helpful?