dmxnet icon indicating copy to clipboard operation
dmxnet copied to clipboard

lib will not work when used in a deamon/service

Open ChriD opened this issue 6 years ago • 4 comments

Hi,

The lib wont work on a DietPi linux distro when used in a deamon / service The logger you use tries to write/open a file and does not have the permisisons to do that. An uncaught error occurred: Error: ENOENT: no such file or directory, open '/logs/all.log

I do not want to give the service i create any writable access to the filesystem

If i remove the logger instance from the lib it works fine. I see the lib is in development and it would be nice if you consider to allow disableing the logging to file.

Thanks & Have a nice day

ChriD avatar Nov 05 '19 20:11 ChriD

Hi, could you test against #19 with

log: {
    files: false
}

in the dmxnet-constructor?

Will merge and publish if successfull. Best regards margau

margau avatar Nov 07 '19 13:11 margau

hi, Did not have much time to test but it seems it does not work. I'll check whats the problem and will get in touch later.

ChriD avatar Nov 07 '19 19:11 ChriD

Hi, could you test against #19 with

log: {
    files: false
}

in the dmxnet-constructor?

Will merge and publish if successfull. Best regards margau

I also tried it. It still creates empty log files. Seems to be a problem in the logging library.

she11sh0cked avatar Jan 27 '20 07:01 she11sh0cked

@ChriD @she11sh0cked Could both of you confirm that this issue is fixed and can be closed?

#EveryClosedIssueIsAGoodIssue

ghost avatar Oct 03 '21 21:10 ghost