index.js: improve logging messages