Skip to content

Commit

Permalink
Remove utils and debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaz87 committed Oct 23, 2018
1 parent 76a68d0 commit 1ce54c8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 94 deletions.
73 changes: 0 additions & 73 deletions lighttouch-debug.lua

This file was deleted.

12 changes: 7 additions & 5 deletions package_loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ function spairs(t, order)
end
end

local debug = require "lighttouch-debug"
local log = require "log"
local ansicolors = require 'ansicolors'

Expand All @@ -50,8 +49,6 @@ function request_process_action ()
log.trace("\tNew request received") -- temporary it can be here
local request = ctx.msg
request.path_segments = request.path:split("/")
-- Generating uuid to match the response with request
debug.generate_uuid()
end
request_process_event:addAction(request_process_action)
request_process_event:setActionPriority(request_process_action, 100)
Expand Down Expand Up @@ -112,7 +109,11 @@ end
---

for k, v in pairs (fs.directory_list(packages_path)) do

local package_name = v:split( "/" )[packages_path_length+1] -- split package path in "/" places and get the last word

log.trace("[Package] Patching actions for " .. ansicolors('%{underline}' .. package_name))

local events_strings = { } -- events names table
local event_count = 0
-- read events file
Expand Down Expand Up @@ -229,9 +230,10 @@ for k, v in pairs (fs.directory_list(packages_path)) do
else
log.error("event " .. v .. " doesn't exist")
end
end

end
end

log.trace("[Package] Finished patching actions for " .. ansicolors('%{underline}' .. package_name))
end

-- interpreted rules loading
Expand Down
2 changes: 1 addition & 1 deletion prelude.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
log.debug("[loading] libraries")
_G.utils = require "utils"

_G.luvent = require "Luvent"
_G.fs = require "fs"

Expand Down
15 changes: 0 additions & 15 deletions utils.lua

This file was deleted.

0 comments on commit 1ce54c8

Please sign in to comment.