| 511 | |
| 512 | |
| 513 | void iscLogStatus(const TEXT* text, const ISC_STATUS* status_vector) |
| 514 | { |
| 515 | /************************************** |
| 516 | * |
| 517 | * i s c L o g S t a t u s |
| 518 | * |
| 519 | ************************************** |
| 520 | * |
| 521 | * Functional description |
| 522 | * Log error to error log. |
| 523 | * |
| 524 | **************************************/ |
| 525 | fb_assert(status_vector[1] != FB_SUCCESS); |
| 526 | |
| 527 | try |
| 528 | { |
| 529 | Firebird::string buffer(text ? text : ""); |
| 530 | |
| 531 | TEXT temp[BUFFER_LARGE]; |
| 532 | while (fb_interpret(temp, sizeof(temp), &status_vector)) |
| 533 | { |
| 534 | if (!buffer.isEmpty()) |
| 535 | { |
| 536 | buffer += "\n\t"; |
| 537 | } |
| 538 | buffer += temp; |
| 539 | } |
| 540 | |
| 541 | gds__log("%s", buffer.c_str()); |
| 542 | } |
| 543 | catch (const Firebird::Exception&) |
| 544 | {} // no-op |
| 545 | } |
| 546 | |
| 547 | |
| 548 | void iscLogStatus(const TEXT* text, const Firebird::IStatus* status) |
no test coverage detected