margau / dmxnet

ArtNet-DMX-sender and receiver for nodejs
MIT License
69 stars 22 forks source link

lib will not work when used in a deamon/service #18

Open ChriD opened 5 years ago

ChriD commented 5 years ago

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

margau commented 5 years ago

Hi, could you test against #19 with

log: {
    files: false
}

in the dmxnet-constructor?

Will merge and publish if successfull. Best regards margau

ChriD commented 5 years ago

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.

she11sh0cked commented 4 years ago

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.

ghost commented 3 years ago

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

EveryClosedIssueIsAGoodIssue