[Glass] RPS gems and logging

Mariano Martinez Peck via Glass glass at lists.gemtalksystems.com
Tue Nov 7 03:47:43 PST 2017

Hi Iwan,

Not strictly related, but as I know you are using Seaside etc, I ask: do
you gems really need to be RPC? Why can't the be linked?
In the past, i have some issues with logs with RPC gems because they would
"disappear" when the gem is shutdown. With linked gems I don't have that

I am defining those logs like this:

## NRS_ALL to define log directory for all processes

And I do rune > 1 stone in the same machine and I am not finding the issue
you comment. I mean, all my logs are self contained per stone under


On Sun, Nov 5, 2017 at 3:50 AM, Iwan Vosloo via Glass <
glass at lists.gemtalksystems.com> wrote:

> Hi there,
> I have a question regarding logging in the scenario where you have an RPC
> gem which is started by netldi on a node where the target stone resides.
> Assume also possibly more than one different stone running here.
> I'd like to control where the RPC gem would log. Now, AFAIK, you can do
> this from the connecting client's side by changing the NRS, but I don't
> want clients to have to know this. So the other way to do this is by
> setting GEMSTONE_NRS_ALL=#dir:/some/where but the problem with this is
> that GEMSTONE_NRS_ALL applies to all stones started by the single netldi in
> whose environment you set the variable.
> I want to log everything to do with a specific stone (including the gems
> started for it) in one place.
> The docs say: "If you set GEMSTONE_NRS_ALL before starting a Stone, an
> application, or a utility (such as copydbf), that setting applies only to
> your own processes and does not affect other users.
> "
> ...so I have tried setting it when running startstone for that particular
> stone only (NOT for startnetldi) - yet it seems to be ignored (which makes
> sense since the stone is not the thing starting up the gem).
> The other way I can think of doing this is to have my own modified scripts
> in $GEMSTONE/sys that set GEMSTONE_NRS_ALL based on the stone you want to
> connect to, but that feels like reinventing the wheel.
> Is there any way to achieve what I want to do without involving the
> connecting client's NRS or starting differently named netldi's or changing
> the standard sys/ scripts?
> Reards
> Iwan
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20171107/e9bb91e0/attachment.html>

More information about the Glass mailing list