Prevent LotusScript agent Print output from being logged

Domino/Notes Version: 14.5.1.
Add-on Product: Domino REST API
Its Version: 1.1.7
Operating System: RockyLinux 10
Client (Notes, Nomad Web, Nomad Mobile, Android/iOS, browser version): 14.5.1.


Hello,

we are using the Domino REST API together with a LotusScript agent. The agent returns its result using Print statements.

When the agent is called directly, the output from the Print statements is returned as the response and is not written to the Domino console or log.

However, when the same agent is called via the Domino REST API, the Print output is returned in the response as expected, but it is also written to the Domino console/log.

We would like to prevent the Print output from being written to the log when the agent is invoked through the REST API. The log grows very quickly, and the data returned by the agent should not be logged there in the first place.

Is there a configuration option or another way to suppress this console/log output while still returning the agent output through the REST API?

Thanks in advance.

Log this as an support to HCL support, because there is something not right here.
Print should be returned to the request, unless you are running on the client.
If you want to print to the domino console, msgbox should be used.

This is standard behaviour, Print from a server-based agent writes to the console in the same way Print from a client agent writes to the status bar. And Domino REST API runs it as a server-based agent.

Is there any other way to run an lotusscript agent (or code) from the REST API?

I know we could just directly call the agent, but for simplicity we would like to avoid that.

If there is a C API call for running an agent that allows Print without outputting to the server console, that could be used in a Domino REST API extension. But I’m not aware of one, in which case it would need an Aha feature enhancement to Domino server.