Skip to content

Writing to log failed from time to time #4

@abaganuv

Description

@abaganuv

I have a list of errors that I print to the console and to the log and I get this errors, that means that not all the rows are printed to the log. Tried to add a sleep for 300 millisecond but still have the issue

Add-Content : Stream was not readable.
At C:\Program Files\WindowsPowerShell\Modules\TUN.Logging\1.1.2\TUN.Logging.psm1:861 char:17

  • ... Add-Content -Path $script:LogFile -Value $Message -NoNewl ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (\g...22-15-04-56.log:String) [Add-Content], ArgumentException
    • FullyQualifiedErrorId : GetContentWriterArgumentError,Microsoft.PowerShell.Commands.AddContentCommand

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions