Added debug code for a possible import issue.

This commit is contained in:
James Cole
2016-11-20 11:40:05 +01:00
parent e1e94a788c
commit 75a524c656
3 changed files with 16 additions and 6 deletions

View File

@@ -15,6 +15,7 @@ namespace FireflyIII\Models;
use Crypt;
use Illuminate\Database\Eloquent\Model;
use Log;
use Storage;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
@@ -151,6 +152,7 @@ class ImportJob extends Model
$disk = Storage::disk('upload');
$encryptedContent = $disk->get($fileName);
$content = Crypt::decrypt($encryptedContent);
Log::debug(sprintf('Content size is %d bytes.', $content));
return $content;
}