Is it possible for some print statements not to appear in the log?

It seems to me that I have “Print” statements in every conceivable place that I effect the removal of documents, yet I end up with missing documents and no record of the removal in the log file.

Our entire application writes to the same log, is it possible some writes to the log file get suppressed/overwitten or otherwise “lost”?

Subject: RE: Is it possible for some print statements not to appear in the log?

It sounds like this is a Domino web application.

I consider that very unlikely that any Print statements are not being recorded. I would first look for other ways documents might be getting deleted without activating your code, such as:

They are deleted with a Notes client instead of with your web app.

They expire because you set your database to remove documents not modified after some number of days.

The deletions are occurring in a local replica (or another server) and getting replicated to your server.

There’s a way to delete documents that you don’t have code in place to intercept (e.g. someone has figured out that they can put a ?DeleteDocument command on the URL instead of clicking the action button you supplied).

Look at the usage history of the application and see who’s doing writes at the time that the documents disappear. Remove users’ access to delete documents, and have some other mechanism for getting rid of them – such as setting some field that makes them not appear in any view – so that you have total control over the process.

Subject: RE: Is it possible for some print statements not to appear in the log?

IMO “print” statements get ignored in WebQueryOpen agents. Why should anyone delete anything while opening a doc is another question, but it is possible to have no trace of “print” statements.

Subject: * you may be right.

Subject: and of course Print in web agent goes to browser, so no log either eom>