summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2018-05-15 17:58:04 +0200
committerUrban Müller2018-05-15 17:58:04 +0200
commit45fc347816f303c19fb484b9ba4f7bfa96f29f88 (patch)
treec072ce1cb342bdcd5be844e86b730617f2a55175 /it.class
parente59e4bb3e7c80aba50e7255021f04fe8c15031bb (diff)
downloaditools-45fc347816f303c19fb484b9ba4f7bfa96f29f88.tar.gz
itools-45fc347816f303c19fb484b9ba4f7bfa96f29f88.tar.bz2
itools-45fc347816f303c19fb484b9ba4f7bfa96f29f88.zip
support server/logs, ultra/bin/log
Diffstat (limited to 'it.class')
-rw-r--r--it.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/it.class b/it.class
index 83cead1..e56c4f2 100644
--- a/it.class
+++ b/it.class
@@ -87,7 +87,8 @@ static function log($name /* ... */)
*/
static function log_line($name, $line)
{
- $basefn = substr($name, 0, 1) == "/" ? $name : $GLOBALS['ULTRAHOME'] . "/log/$name";
+ $log = $GLOBALS['ULTRAHOME'] == "/opt/ultra/bin" ? "../log" : ($GLOBALS['ULTRASITE'] == "server" ? "logs" : "log");
+ $basefn = substr($name, 0, 1) == "/" ? $name : $GLOBALS['ULTRAHOME'] . "/$log/$name";
$fullfn = $basefn . "-" . date('Ymd');
if (substr($fullfn, 0, 1) == "/")