Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-PodeLogger ParameterBindingValidationException #1453

Open
phdavis opened this issue Nov 13, 2024 · 2 comments
Open

Get-PodeLogger ParameterBindingValidationException #1453

phdavis opened this issue Nov 13, 2024 · 2 comments
Labels

Comments

@phdavis
Copy link

phdavis commented Nov 13, 2024

Describe the Bug

Updated to 2.11.0 and started noticed this show up in my debug logs occasionally. I haven't noticed any ill effect yet, but thought I'd bring it up in case it's a bug or something I need to fix in code. There's a chance this has always been happening but I know there were some logging changes in this release.

Steps To Reproduce

Date: 2024-11-13 12:44:56
Level: Error
ThreadId: 0
Server: SERVER01
Category: InvalidData: (:) [Get-PodeLogger], ParameterBindingValidationException
Message: Cannot bind argument to parameter 'Name' because it is an empty string.
StackTrace: at <ScriptBlock>, <No file>: line 20

Expected Behavior

No exception.

Platform

  • OS: Windows Server 2022
  • Browser: NA
  • Versions:
    • Pode: 2.11.0
    • PowerShell: PS7.4.6
@mdaneri
Copy link
Contributor

mdaneri commented Nov 13, 2024

Could you give me more information?
Do you have a custom log?

@phdavis
Copy link
Author

phdavis commented Nov 13, 2024

Could you give me more information? Do you have a custom log?

We have these setup, if that's what you're asking

New-PodeLoggingMethod -File -Name 'api_requests' -Path $cfgLogPath -MaxSize 25MB -Batch 50 -BatchTimeout 15 | Enable-PodeRequestLogging

New-PodeLoggingMethod -File -Name 'api_logs_debug' -Path $cfgLogPath -MaxSize 30MB | Enable-PodeErrorLogging -Levels Informational, Error, Warning, Debug, Verbose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

2 participants