Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/lookup-server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/TDebug.php')
-rw-r--r--server/lib/TDebug.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/server/lib/TDebug.php b/server/lib/TDebug.php
new file mode 100644
index 0000000..789e5f8
--- /dev/null
+++ b/server/lib/TDebug.php
@@ -0,0 +1,13 @@
+<?php
+
+namespace LookupServer;
+
+
+trait TDebug {
+
+ public function debug(string $line) {
+ // this is ugly, but at least we have some debug somewhere
+ @file_put_contents(__DIR__ . '/../../debug.log', $line . "\n", FILE_APPEND);
+ }
+
+}