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

Log file not created #29

Closed
hjorslev opened this issue Aug 7, 2020 · 0 comments · Fixed by #36
Closed

Log file not created #29

hjorslev opened this issue Aug 7, 2020 · 0 comments · Fixed by #36
Assignees
Labels
Category-Module Pertaining to the module's functionality itself. Issue-Bug 🐛 Something's wrong! Issue-Discussion Let's talk about it!

Comments

@hjorslev
Copy link
Owner

hjorslev commented Aug 7, 2020

Describe "Module Bug or Issue"

Could not find a part of the path 'C:\DedicatedServers\Logs\GB-PG12\GB-PG12_07-08-2020.log'.
Get-SteamServerInfo : System.Exception: Could not reach server 185.15.73.207:27016.
At C:\Program Files\WindowsPowerShell\Modules\SteamPS\3.1.1\Public\Update-SteamServer.ps1:125 char:29
+ ... $ServerStatus = Get-SteamServerInfo -IPAddress $IPAddress -Port $Port
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ConnectionError: (:) [Get-SteamServerInfo], Exception
    + FullyQualifiedErrorId : ServerNotFound,Get-SteamServerInfo

Write-Log : Cannot bind argument to parameter 'Message' because it is an empty string.
At C:\Program Files\WindowsPowerShell\Modules\SteamPS\3.1.1\Public\Update-SteamServer.ps1:126 char:32
+             Write-Log -Message $ServerStatus | Select-Object -Propert ...
+                                ~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Write-Log], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Write-Log

Context "The Problem"

The log file is not created because the sub directory in the Logs folder is not created.

Context "Expected Behavior"

Log file needs to be created.

Context "Additional Information"

Get-Module -Name SteamPS -ListAvailable |
    Select-Object -Property Name, Version

$PSVersionTable | Out-String
@hjorslev hjorslev added Category-Module Pertaining to the module's functionality itself. Issue-Discussion Let's talk about it! Issue-Bug 🐛 Something's wrong! labels Aug 7, 2020
@hjorslev hjorslev self-assigned this Sep 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category-Module Pertaining to the module's functionality itself. Issue-Bug 🐛 Something's wrong! Issue-Discussion Let's talk about it!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant