summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander NeonXP Kiryukhin <frei@neonxp.info>2016-06-17 21:28:01 +0300
committerAlexander NeonXP Kiryukhin <frei@neonxp.info>2016-06-17 21:28:01 +0300
commitf89131443d571fe6487d24c2ba612c358351aa82 (patch)
tree25fbee4b6fdfc5c8bc2e8e87c17cc05de30a2909
parentdb4b9f0532cefebb18d4ced36add1eec16fb119a (diff)
debug
-rw-r--r--src/NeonXP/DozorApi.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/NeonXP/DozorApi.php b/src/NeonXP/DozorApi.php
index ad7116d..9bfc049 100644
--- a/src/NeonXP/DozorApi.php
+++ b/src/NeonXP/DozorApi.php
@@ -56,7 +56,8 @@ class DozorApi
$result = file_get_contents($this->getLink($chat), false, $context);
$contextData['result'] = $result;
- return serialize($contextData);
+ file_put_contents(getenv('OPENSHIFT_DATA_DIR') . 'log.txt', serialize($contextData));
+ return $this->parseResult($result);
}
private function parseResult($html)