SLYtiger16/caldavjs-nextcloud

How to turn off logging?

Opened this issue · 8 comments

Great lib, is there any way to turn standard logging off?

What logs are you getting?

Yep, sorry, should have provided some more info:

processing..
iCAL-PARSER: 1 events parsed
iCAL-PARSER: 1 events parsed
iCAL-PARSER: 1 events parsed

I guess it is from one of the libs you are using?

This is from the library ical-parser. That library currently does not have a verbosity flag to change. I will see about forking their code to add that in, it has bugged me as well seeing those logs.

Updated to 1.6.2. Use setting parserLogging: true/false to toggle logs.

Lovely, that was fast. Thanks and all the best

Thanks,
please add the async package, you probably have it globally :-)

And the new version doesn't work for me. I get

I20200923-22:40:31.320(2)? processing..
I20200923-22:40:31.355(2)? processing..
I20200923-22:40:33.275(2)? processing..

But no events are returned, strange ... did you change anything else?

I will take a look at this

Solved by #4