LogArgs example plugin presenting several errors

I’m trying to configure the event daemon and test the simple example logArgs plugin, but I’m met with several errors regarding the os.environ variables, a connection refusal, and being unable to register a callback function from logArgs. I’ve tried to find a few clues to why, my first assumption is that the connection to the server is being halted somehow through our network. Any feedback/clues would be helpful! Here’s what the console presents:

(Edit: I’ve fixed most of the problems in this log, continued in reply. Deleted so you don’t have to scroll a million miles.)

1 Like

Went a little further and cleared up the connection problem-
Now I’m just getting CRITICAL:engine:Error running register callback function from logArgs.
It gets caught up at os.environ[“SGDAEMON_LOGARGS_NAME”] (left it at default for now). Past that, it raises a KeyError(key) from None (KeyError: ‘SGDAEMON_LOGARGS_NAME’) in os.py getitem.
I still can’t quite figure it out.

1 Like

Figured it out. I’m silly and forgot to set the logArgs scriptname/key for the callback params.

1 Like

Glad you got there, @victorfranjo and thanks for sharing the solution! :medal_sports: