SLYtiger16 / caldavjs-nextcloud

CalDav integration for Nextcloud and others
MIT License
6 stars 1 forks source link

How to turn off logging? #1

Open olafthiele opened 4 years ago

olafthiele commented 4 years ago

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

SLYtiger16 commented 4 years ago

What logs are you getting?

olafthiele commented 4 years ago

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?

SLYtiger16 commented 4 years ago

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.

SLYtiger16 commented 4 years ago

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

olafthiele commented 4 years ago

Lovely, that was fast. Thanks and all the best

olafthiele commented 4 years ago

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?

SLYtiger16 commented 3 years ago

I will take a look at this

olafthiele commented 3 years ago

Solved by #4