From: Do you prefer debugging or adding logs? : r/node (reddit.com)

Debugging is useful when you know there’s an ongoing issue that’s easy to reproduce and debug.

Logging is useful when there’s a small amount of sporadic failure that you can use a trace log to follow.