summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) == "/")