[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

log file location

in Misc.pl:

sub log_line {
    my($line) = @_;
    my($logwrite) = 0;

    my $s = time();

    if ($param{'logfile'} ne '') {
    $line =~ s/\n*$/\n/;

    open(TRACK, ">>$param{logfile}");

    print TRACK "$s $line";

    close(TRACK);        #  if (TRACK);

shouldn't it be 
    open(TRACK, ">> $infobot_base_dir $param{logfile}");

- I'd rather the log file stay in the same directory as the rest of the
bot's files, rather than being created in whatever the current wd is.