From 3f9eb8071399cd63587b0f475c1e0f58906b82d9 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Sat, 28 Jan 2023 18:10:16 -0600 Subject: [PATCH] Update for namespaced_logging v0.3+ --- hff_notion_api_client.nimble | 4 ++-- src/hff_notion_api_client/utils.nim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hff_notion_api_client.nimble b/hff_notion_api_client.nimble index f88e461..57bb473 100644 --- a/hff_notion_api_client.nimble +++ b/hff_notion_api_client.nimble @@ -1,6 +1,6 @@ # Package -version = "0.4.3" +version = "0.4.4" author = "Jonathan Bernard" description = "Utilities and bindings for HFF's Notion API." license = "GPL-3.0-or-later" @@ -11,4 +11,4 @@ srcDir = "src" requires "nim >= 1.4.8" requires "https://git.jdb-software.com/jdb/buffoonery" requires "https://git.jdb-software.com/jdb/nim-time-utils.git >= 0.5.0" -requires "https://git.jdb-software.com/jdb/nim-namespaced-logging" +requires "https://git.jdb-software.com/jdb/nim-namespaced-logging.git >= 0.3.1" diff --git a/src/hff_notion_api_client/utils.nim b/src/hff_notion_api_client/utils.nim index 36982d4..082b34b 100644 --- a/src/hff_notion_api_client/utils.nim +++ b/src/hff_notion_api_client/utils.nim @@ -8,7 +8,7 @@ const NOTION_DATE_FORMAT = "YYYY-MM-dd" var logNs {.threadvar.}: LoggingNamespace template log(): untyped = - if logNs.isNil: logNs = initLoggingNamespace("hff_notion_api_client/utils", lvlInfo) + if logNs.isNil: logNs = getLoggerForNamespace("hff_notion_api_client/utils", lvlInfo) logNs proc parseDate(str: string): DateTime =