add logging

This commit is contained in:
theFox6 2020-06-03 15:29:04 +02:00
parent faf69d7bd5
commit ddb3c3f7fe
No known key found for this signature in database
GPG Key ID: C884FE8D3BCE128A
3 changed files with 3 additions and 23 deletions

@ -1,23 +0,0 @@
language: generic
sudo: false
addons:
apt:
packages:
- luarocks
before_install:
- luarocks install --local luacheck
env:
- CONFIG=.luacheck_tidy
- CONFIG=.luacheckrc
matrix:
allow_failures:
- name: "beauty check"
env: CONFIG=.luacheck_tidy
exclude:
- name: "health check"
env: CONFIG=.luacheckrc
script:
- $HOME/.luarocks/bin/luacheck --config $CONFIG .
notifications:
email:
on_failure: change

@ -65,6 +65,7 @@ end
-- [function] Require module (does not override modules.conf) -- [function] Require module (does not override modules.conf)
function microexpansion.require_module(name) function microexpansion.require_module(name)
if settings[name] then if settings[name] then
microexpansion.log("loading module " + name)
return microexpansion.load_module(name) return microexpansion.load_module(name)
end end
end end

@ -88,3 +88,5 @@ function me.get_def(name, key)
return def return def
end end
end end
microexpansion.log("Machine Registration API loaded")