From 5abe6dbb87aff4b58ded012d97430d26bb37a215 Mon Sep 17 00:00:00 2001 From: Nicholas Foreman <39781044+nicholasforeman@users.noreply.github.com> Date: Mon, 25 Nov 2024 17:37:42 -0800 Subject: [PATCH 1/3] Fix default level check --- src/init.luau | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/init.luau b/src/init.luau index 64ff64c..3af405a 100644 --- a/src/init.luau +++ b/src/init.luau @@ -32,9 +32,8 @@ Logr._defaultLevel = "None" local tNew = t.tuple(t.string, t.optional(t.string)) function Logr.new(name: string, level: string?) + level = level or Logr._defaultLevel assert(tNew(name, level)) - - level = level or self._defaultLevel assert(IsValidLogLevelName(level :: string)) local self = setmetatable({}, Logr) From c7ef7dd4df9d0882040f7a4d1226a41ed774b7a9 Mon Sep 17 00:00:00 2001 From: Nicholas Foreman <39781044+nicholasforeman@users.noreply.github.com> Date: Mon, 25 Nov 2024 17:38:30 -0800 Subject: [PATCH 2/3] Update version --- wally.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wally.toml b/wally.toml index 5907178..ddfc100 100644 --- a/wally.toml +++ b/wally.toml @@ -1,7 +1,7 @@ [package] name = "cody-nelson/logr" description = "Logr is a simplistic logging library" -version = "0.0.9" +version = "0.0.10" license = "MIT" authors = ["Cody Nelson"] registry = "https://github.com/UpliftGames/wally-index" From ba52ecdc1692677f58978134e8a4c95a85a2edfc Mon Sep 17 00:00:00 2001 From: Nicholas Foreman <39781044+nicholasforeman@users.noreply.github.com> Date: Sun, 8 Dec 2024 15:57:50 -0800 Subject: [PATCH 3/3] Change package org to azutreo --- wally.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wally.toml b/wally.toml index ddfc100..bebc0d2 100644 --- a/wally.toml +++ b/wally.toml @@ -1,5 +1,5 @@ [package] -name = "cody-nelson/logr" +name = "azutreo/logr" description = "Logr is a simplistic logging library" version = "0.0.10" license = "MIT"