kutt icon indicating copy to clipboard operation
kutt copied to clipboard

No error logs or debug/verbosity mode

Open hashworks opened this issue 4 years ago • 6 comments

As far as I see, kutt offers no way to log any errors. It won't show any by default and there is no debug/verbosity mode – and if there is one it isn't documented.

For example, I had a working instance and suddenly I'm getting 500 errors on link creation. Opening old links, login, listing old links etc. works fine, only the link creation fails. However, there is no error output whatsoever besides the {"error":"An error occurred."} json output.

Basically I have to guess what's wrong, I think it's absolutely required that there is some kind of error logging.

hashworks avatar Dec 21 '20 17:12 hashworks

You can see the errors in Node.js console. So I guess what you mean is to send more info of what happened inside API response as well?

poeti8 avatar Jan 02 '21 14:01 poeti8

There are no errors in my node console – at least not for that specific 500 error.

hashworks avatar Jan 02 '21 14:01 hashworks

I ms tuck . . i mablet to create link.. not able to delete or update.. it shows error occurred.. no way to know whats going on

vmwsree avatar Dec 24 '21 03:12 vmwsree

try running npm run dev to see if more error details show up.

kengher avatar Mar 28 '22 20:03 kengher

This is something that should be configurable over a configuration file, parameter or environment variable.

hashworks avatar Mar 28 '22 20:03 hashworks

a parameter in .env to control debuging is much needed.

ksingh7 avatar May 16 '23 19:05 ksingh7