Skip to content

Commit 330d5a2

Browse files
committed
fix: error with other lua versions
Signed-off-by: Rushikesh Tote <rushi.tote@gmail.com>
1 parent 4ba0c9c commit 330d5a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/util/Log.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
--See the License for the specific language governing permissions and
1313
--limitations under the License.
1414

15-
require "logging"
16-
require "logging.file"
15+
local Logging = require "logging"
16+
local fileLogging = require "logging.file"
1717

1818
-- The logging module for logging to console or any file
1919
Log = {}
2020

2121
-- returns logger function for logging to console
2222
function Log:getLogger()
23-
local logger = logging.new(function(self, level, message)
23+
local logger = Logging.new(function(self, level, message)
2424
print(level, message)
2525
return true
2626
end)
@@ -32,6 +32,6 @@ function Log:getFileLogger(filePath)
3232
if not filePath then
3333
error("no filePath for logger provided")
3434
end
35-
local logger = logging.file(filePath)
35+
local logger = fileLogging(filePath)
3636
return logger
3737
end

0 commit comments

Comments
 (0)