Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] [tag op=log....



******    message to minivend-users from "Bill Randle" <billr@exgate.tek.com>     ******


On May 28,  9:51pm, Hans-Joachim Leidinger wrote:
} Subject: Re: [mv] [tag op=log....
} ******    message to minivend-users from Hans-Joachim Leidinger
<jojo@buchonline.net>     ******
}
[DEL]
}
} Bill,
}
} Are you so kind to give me tips and hints, how to read and find the
} right part of MiniVend codes?
}
} I was looking into Interpolate.pm first, but couldn't find an answer.
} After your fine explanation, I was looking into Interpolate.pm (Verson
} 3.11) once more again...
  ^^^^
  Aack!

} - grepping for "log"...ooohhh to much results with "logGlobal" etc.
} - grepping for "log(" ... aahh found in "sub do_parse_tag" and a hint to
} "do_log"
} - grepping for "do_log", hmmmm...I see codes like
}
} ----snipp----
} 	else {
} 		logError("Unknown logging operation '$op'");
} 		return '';
} 	}
} ----snipp----

I don't know where it is in 3.11. It was called do_log in 3.14-5. I
don't have any earlier source and there's nothing much earlier on
ftp.minivend.com (which is where I got the 3.14 source from).

But - we can find it! In Interpolate.pm, look for "sub do_tag" this
should be the guts of the [tag ...] tag. In this version it will be
a big hairy if-else block. Find the comparison to /log/ and you
should see the routine it is calling to do the actual logging.
[Hopefully, it calls something else, rather than doing it all inline.]

} why did I never seen this in my error.log? This make my search easier
} (grepping for "Unknown logging ...").

Don't know, because I don't know the context in which that error message
is logged.

} Joachim


	-Bill
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: