Browse Source

fixed broken error logging by limited description length

9.x-1.0
ppound 6 years ago
parent
commit
0bab8ef088
  1. 4
      includes/db.inc

4
includes/db.inc

@ -40,9 +40,9 @@ function upei_roblib_ill_log_request($request, $response) {
'pages_requested' => isset($request['BibliographicInfo']['PagesRequested']) ? $request['BibliographicInfo']['PagesRequested'] : '', 'pages_requested' => isset($request['BibliographicInfo']['PagesRequested']) ? $request['BibliographicInfo']['PagesRequested'] : '',
'time_submitted' => strtotime($time_submitted), 'time_submitted' => strtotime($time_submitted),
'relais_request_id' => isset($response['RequestNumber']) ? $response['RequestNumber'] : '-1', 'relais_request_id' => isset($response['RequestNumber']) ? $response['RequestNumber'] : '-1',
'relais_message' => $relais_message, 'relais_message' => substr($relais_message, 0, 254),
])->execute(); ])->execute();
} catch (Exception $e) { } catch (Exception $e) {
watchdog_exception('upei_roblib_ill', $e, 'Error logging ILL request.', [], WATCHDOG_ERROR); watchdog_exception('upei_roblib_ill', $e, 'Error logging ILL request.', NULL, WATCHDOG_ERROR);
} }
} }

Loading…
Cancel
Save