lilipad 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lilipad/logger.rb +15 -9
- data/lib/lilipad/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8aed4ffbd2d30b1f9fa08517c60a916be21399404d2f82e5165a181a5716735a
|
4
|
+
data.tar.gz: ace0509587f9bf98c284f34956bc5a2b47ea995e2ef21f508e3dd33b8c7023b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cea6ce2ddd5cf2ab454698175a8b424da5fa86f65ab1547b157144a9599ed202c9a397c66e6cc349ad2518494c58af85c2b58cd8ceb65bfd66daffa39a0f6c5
|
7
|
+
data.tar.gz: 1e23e733cdd4f7dc6b4c7e60cca2c67794ee905b066944fc2c37a62b2e70ac395430c2cea177f20938dd7e4a752bc9075f34d9331318906da37ab2b29f239dc8
|
data/lib/lilipad/logger.rb
CHANGED
@@ -10,18 +10,24 @@ module Lilipad
|
|
10
10
|
|
11
11
|
Thread.new(filewatcher) do |fw|
|
12
12
|
fw.watch do |_changes|
|
13
|
-
|
13
|
+
puts "[Lilipad DEBUG] Reloading config file..."
|
14
|
+
|
15
|
+
begin
|
16
|
+
json = JSON.parse(File.read("./lilipad_config.json"))
|
14
17
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
18
|
+
if json["enable"]
|
19
|
+
enable_trace
|
20
|
+
else
|
21
|
+
disable_trace
|
22
|
+
end
|
20
23
|
|
21
|
-
|
24
|
+
reset
|
22
25
|
|
23
|
-
|
24
|
-
|
26
|
+
json["log"].each do |log|
|
27
|
+
append_logg(log["file"], log["lineno"], log["msg"])
|
28
|
+
end
|
29
|
+
rescue => e
|
30
|
+
puts "[Lilipad DEBUG] Error reloading config file: #{e}"
|
25
31
|
end
|
26
32
|
end
|
27
33
|
end
|
data/lib/lilipad/version.rb
CHANGED