Skip to content

Commit

Permalink
Update Get-IPGeoLocation to use Out-LogFile prompt tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnybottles committed Jan 7, 2025
1 parent 9930bd3 commit d2c0985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hawk/internal/functions/Get-IPGeolocation.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Function Get-IPGeolocation {
$geoip = Invoke-RestMethod -Method Get -URI $resource -ErrorAction SilentlyContinue

if (($Error.Count -gt 0) -or ($null -eq $geoip.type)) {
Out-LogFile ("Failed to retreive location for IP " + $IPAddress)
Out-LogFile ("Failed to retreive location for IP " + $IPAddress) -isError
$hash = @{
IP = $IPAddress
CountryName = "Failed to Resolve"
Expand Down

0 comments on commit d2c0985

Please sign in to comment.