iohook: Don't show debug information when imported

Expected Behavior

iohook should be imported without creating any noise in the terminal.

Current Behavior

It is logging this:

refresh_locale_list [476]: GetKeyboardLayoutList(0, NULL) found 2 layouts.
refresh_locale_list [493]: Received 2 locales.
load_input_helper [866]: refresh_locale_list() found 2 locale(s).

Possible Solution

Silently perform this in the background and only alert if failed.

Steps to Reproduce (for bugs)

require("iohook")

Context

I want to be able to silently import iohook without it spitting information in the terminal.

Your Environment

  • Version used: 0.6.5
  • Environment name and version (e.g. Chrome 39, node.js 5.4): Node.js 13.7.0
  • Operating System and version (desktop or mobile): Windows 10

cc @Djiit

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18

Most upvoted comments

The code is pretty old as we speak. I’m more able to maintain the JS aspects, as I’m not the original author 😃, so yeah, any help is appreciated ! Thanks!