diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-07 00:46:35 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-07 00:46:35 +0000 |
commit | 934bc1e1f15405e7c4adb9d5bf59bad7680c5d79 (patch) | |
tree | b854493f3b3e3468658b80cac92f3505307d3340 | |
parent | 9cc5d058145b5c986248fef192b4a61c24a02bd6 (diff) |
Add debug log strings with the G2 stack trace when there's a failure in a g2 call.
-rw-r--r-- | modules/g2_import/helpers/g2_import.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php index 305c8f00..e3e7c872 100644 --- a/modules/g2_import/helpers/g2_import.php +++ b/modules/g2_import/helpers/g2_import.php @@ -21,6 +21,7 @@ function g2() { $args = func_get_arg(0); $ret = array_shift($args); if ($ret) { + Kohana::log("error", "Gallery2 function failed with: " . $ret->getAsText()); throw new Exception("@todo G2_FUNCTION_FAILED"); } if (count($args) == 1) { |