s-KaiNet / spsave

Save files in SharePoint using node.js easily
MIT License
86 stars 22 forks source link

Successful upload message #51

Closed stychu closed 5 years ago

stychu commented 5 years ago

Hello, is there a way to change the default message when the file is successfully uploaded or entirely remove it?? [18:06:18] spsave: test3.csv successfully uploaded to 'https://..............'

s-KaiNet commented 5 years ago

Hi, spsave doesn't support such scenario. You can completely disable logs by using console.log = function(){}. However, it will disable logging in other modules.

koltyakov commented 5 years ago

I did something like, but can't recall when I needed this:

const log = console.log;
console.log = () => {/**/};
await spsave(/* ... */);
console.log = log;