Fix logging by adapting new method signature
This commit is contained in:
@@ -175,7 +175,7 @@ class SnowreportImportService implements SingletonInterface
|
|||||||
|
|
||||||
$this->persistenceManager->persistAll();
|
$this->persistenceManager->persistAll();
|
||||||
|
|
||||||
$GLOBALS['BE_USER']->writelog(sprintf('Snowreport XML import successful (%d records).', $count), 'ex_epproducts');
|
$GLOBALS['BE_USER']->writelog(4, 0, 0, 0, sprintf('Snowreport XML import successful (%d records).', $count), []);
|
||||||
|
|
||||||
return $count;
|
return $count;
|
||||||
}
|
}
|
||||||
@@ -222,7 +222,7 @@ class SnowreportImportService implements SingletonInterface
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$GLOBALS['BE_USER']->writelog('Snowreport XML download failed. Keeping existing file.', 'ex_epproducts');
|
$GLOBALS['BE_USER']->writelog(4, 0, 0, 0, 'Snowreport XML download failed. Keeping existing file.', []);
|
||||||
@rename($backupPath, $path);
|
@rename($backupPath, $path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user