Logging changes when processing TIC files
This commit is contained in:
@@ -144,7 +144,7 @@ class Tic extends FTNBase
|
||||
*/
|
||||
public function load(string $filename): void
|
||||
{
|
||||
Log::info(sprintf('%s:Processing TIC file [%s]',self::LOGKEY,$filename));
|
||||
Log::info(sprintf('%s:+ Processing TIC file [%s]',self::LOGKEY,$filename));
|
||||
|
||||
if (str_contains($filename,'-')) {
|
||||
list($hex,$name) = explode('-',$filename);
|
||||
@@ -154,10 +154,10 @@ class Tic extends FTNBase
|
||||
}
|
||||
|
||||
if (! file_exists($filename))
|
||||
throw new FileNotFoundException(sprintf('%s:File [%s] doesnt exist',self::LOGKEY,$filename));
|
||||
throw new FileNotFoundException(sprintf('File [%s] doesnt exist',$filename));
|
||||
|
||||
if (! is_readable($filename))
|
||||
throw new UnableToWriteFile(sprintf('%s:File [%s] is not readable',self::LOGKEY,realpath($filename)));
|
||||
throw new UnableToWriteFile(sprintf('File [%s] is not readable',realpath($filename)));
|
||||
|
||||
$f = fopen($filename,'rb');
|
||||
if (! $f) {
|
||||
|
Reference in New Issue
Block a user