diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-22 14:31:12 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-22 14:31:12 +0200 |
commit | ab1a4760ed5b35cf58fc6f3f4e3c31be4cff17f2 (patch) | |
tree | 757920b994d75df9490c2489e20513835913f465 /app/functions.php | |
parent | eeb4688dcc7caafeaa020a3cd9d78d18aea30353 (diff) |
Basic prototype to handle Github webhooks
Diffstat (limited to 'app/functions.php')
-rw-r--r-- | app/functions.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/functions.php b/app/functions.php index 4cbbbbfe..dc6431b9 100644 --- a/app/functions.php +++ b/app/functions.php @@ -6,6 +6,10 @@ use PicoDb\Database; function debug($message) { + if (! is_string($message)) { + $message = var_export($message, true); + } + error_log($message.PHP_EOL, 3, 'data/debug.log'); } |