Jobs: Tweak Check_FileSize
This commit is contained in:
parent
b5d8967a5c
commit
d2409c07bb
@ -766,7 +766,7 @@ Public Class ImportZUGFeRDFiles
|
|||||||
''' <param name="pMaxFileSizeInMegaBytes"></param>
|
''' <param name="pMaxFileSizeInMegaBytes"></param>
|
||||||
''' <returns></returns>
|
''' <returns></returns>
|
||||||
Private Function Check_FileSize(pFileInfo As FileInfo, pMaxFileSizeInMegaBytes As Integer) As Boolean
|
Private Function Check_FileSize(pFileInfo As FileInfo, pMaxFileSizeInMegaBytes As Integer) As Boolean
|
||||||
_logger.Debug("Checking Filesize of {0}", pFileInfo.Name)
|
_logger.Info("Checking Filesize of {0}", pFileInfo.Name)
|
||||||
|
|
||||||
If pMaxFileSizeInMegaBytes <= 0 Then
|
If pMaxFileSizeInMegaBytes <= 0 Then
|
||||||
_logger.Debug("Filesize is not configured. Skipping check.")
|
_logger.Debug("Filesize is not configured. Skipping check.")
|
||||||
@ -776,6 +776,7 @@ Public Class ImportZUGFeRDFiles
|
|||||||
Dim oMaxSize = pMaxFileSizeInMegaBytes * 1024 * 1024
|
Dim oMaxSize = pMaxFileSizeInMegaBytes * 1024 * 1024
|
||||||
|
|
||||||
_logger.Debug("Filesize threshold is {0} bytes.", oMaxSize)
|
_logger.Debug("Filesize threshold is {0} bytes.", oMaxSize)
|
||||||
|
|
||||||
If oMaxSize > 0 And pFileInfo.Length > oMaxSize Then
|
If oMaxSize > 0 And pFileInfo.Length > oMaxSize Then
|
||||||
_logger.Debug("Filesize is bigger than threshold. Rejecting.")
|
_logger.Debug("Filesize is bigger than threshold. Rejecting.")
|
||||||
Return False
|
Return False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user