| @@ -2,9 +2,8 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Templately\Core\Importer; |
| 4 | 4 | |
| 5 | 5 | use Templately\Core\Importer\Utils\LogHandler; |
| 6 | -use Templately\Core\Importer\Utils\SessionData; | |
| 7 | 6 | use Templately\Core\Importer\Utils\Utils; |
| 8 | 7 | use Templately\Utils\Helper; |
| 9 | 8 | |
| 10 | 9 | trait LogHelper { |
| @@ -103,10 +102,9 @@ | ||
| 103 | 102 | * @param mixed $log |
| 104 | 103 | * @return void |
| 105 | 104 | */ |
| 106 | 105 | public function sse_log_file( $log ){ |
| 107 | - $session_id = SessionData::get_session_id(); | |
| 108 | - $request_params = $session_id ? SessionData::get_data($session_id) : []; | |
| 106 | + $request_params = Utils::get_session_data_by_id(); | |
| 109 | 107 | |
| 110 | 108 | if (is_array($log)) { |
| 111 | 109 | $log['timestamp'] = date('Y-m-d H:i:s'); |
| 112 | 110 | } |