Skip to content

Conversation

Charles-Gagnon
Copy link
Contributor

Closes #438

This is primarily for our tests, although when I'm running locally I usually have debug enabled too.

Along with this I updated the min timeout value since all that extra logging does eat up extra processing time. 10sec is probably a lot more than most cases need but given that these tests care about correctness and not necessarily performance that seems fine (and trying to guess what the exact execution time is going to be would be very difficult).

This does mean that if users are copying the host.json directly they may have this enabled by accident too - but it's easy enough to change and is something I think that's actually useful for them to know about so doesn't seem like a terrible thing to have. (plus most people are going to create a new function and then copy the code over directly instead of copying the entire samples folder so this probably isn't even going to be a thing most people run in to).

@Charles-Gagnon Charles-Gagnon merged commit 2d79059 into main Nov 14, 2022
@Charles-Gagnon Charles-Gagnon deleted the chgagnon/debugLogging branch November 14, 2022 23:39
PBBlox pushed a commit to PBBlox/azure-functions-sql-extension that referenced this pull request Apr 6, 2025
* Default log level to debug

* update min timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable debug logging during test runs

2 participants