From cd217cfbdfa762f132628fa95147009b9032b635 Mon Sep 17 00:00:00 2001 From: jvlflame Date: Mon, 31 Aug 2020 21:03:53 -0700 Subject: [PATCH] Update logging --- src/Javinizer/Private/Get-JVUrlLocation.ps1 | 2 +- src/Javinizer/Public/Get-DmmUrl.ps1 | 2 +- src/Javinizer/Public/Get-Jav321Url.ps1 | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Javinizer/Private/Get-JVUrlLocation.ps1 b/src/Javinizer/Private/Get-JVUrlLocation.ps1 index 7e848640..c3d2bc00 100644 --- a/src/Javinizer/Private/Get-JVUrlLocation.ps1 +++ b/src/Javinizer/Private/Get-JVUrlLocation.ps1 @@ -1,6 +1,6 @@ function Get-JVUrlLocation { [CmdletBinding()] - param( + param ( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] [PSObject]$Url ) diff --git a/src/Javinizer/Public/Get-DmmUrl.ps1 b/src/Javinizer/Public/Get-DmmUrl.ps1 index c6afbb90..30694193 100644 --- a/src/Javinizer/Public/Get-DmmUrl.ps1 +++ b/src/Javinizer/Public/Get-DmmUrl.ps1 @@ -66,7 +66,7 @@ function Get-DmmUrl { } if ($null -eq $directUrl) { - Write-JVLog -Level Warning -Message "[$Id] [$($MyInvocation.MyCommand.Name)] Search [$Id] not matched on DMM" + Write-JVLog -Level Warning -Message "[$Id] not matched on DMM" return } else { $urlObject = [PSCustomObject]@{ diff --git a/src/Javinizer/Public/Get-Jav321Url.ps1 b/src/Javinizer/Public/Get-Jav321Url.ps1 index 7b7288a0..f839689b 100644 --- a/src/Javinizer/Public/Get-Jav321Url.ps1 +++ b/src/Javinizer/Public/Get-Jav321Url.ps1 @@ -57,7 +57,7 @@ function Get-Jav321Url { } if ($null -eq $directUrl) { - Write-JVLog -Level Warning -Message "[$Id] [$($MyInvocation.MyCommand.Name)] Search [$Id] not matched on Jav321" + Write-JVLog -Level Warning -Message "[$Id] Search [$Id] not matched on Jav321" return } else { $urlObject = [PSCustomObject]@{ @@ -67,7 +67,7 @@ function Get-Jav321Url { Write-Output $urlObject } } else { - Write-JVLog -Level Warning -Message "[$Id] [$($MyInvocation.MyCommand.Name)] Search [$Id] not matched on Jav321" + Write-JVLog -Level Warning -Message "[$Id] Search [$Id] not matched on Jav321" return } }