mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-08-24 23:11:12 +00:00
chore: upgrade dependencies v0.22 (#2185)
This commit is contained in:
@@ -96,7 +96,8 @@ proc process*(self: ptr RelayRequest,
|
||||
case self.operation:
|
||||
|
||||
of SUBSCRIBE:
|
||||
node.wakuRelay.subscribe($self.pubsubTopic, self.relayEventCallback)
|
||||
# TO DO: properly perform 'subscribe'
|
||||
discard node.wakuRelay.subscribe($self.pubsubTopic, self.relayEventCallback)
|
||||
|
||||
of UNSUBSCRIBE:
|
||||
# TODO: properly perform 'unsubscribe'
|
||||
|
||||
Vendored
+1
-1
Submodule vendor/nim-chronicles updated: 1922045dba...d1d34b9490
Vendored
+1
-1
Submodule vendor/nim-chronos updated: 2e8551b0d9...be2edab3ac
Vendored
+1
-1
Submodule vendor/nim-confutils updated: 674c9e4c8e...7568f1b7c3
Vendored
+1
-1
Submodule vendor/nim-eth updated: ac680ed79b...700360fde2
Vendored
+1
-1
Submodule vendor/nim-http-utils updated: 87b7cbf032...4a46dcc4c0
Vendored
+1
-1
Submodule vendor/nim-presto updated: 81250a419b...5ca16485e4
Vendored
+1
-1
Submodule vendor/nim-regex updated: f080b198e2...577c4ec3b2
Vendored
+1
-1
Submodule vendor/nim-serialization updated: 4bdbc29e54...543b2f3dd0
Vendored
+1
-1
Submodule vendor/nim-stint updated: 54e24cae41...711cda4456
Vendored
+1
-1
Submodule vendor/nim-unicodedb updated: b055310c08...04a154eee0
Vendored
+1
-1
Submodule vendor/nim-unittest2 updated: 2300fa9924...91973dfa38
Vendored
+1
-1
Submodule vendor/nim-web3 updated: 70f22351c4...428b931e7c
Vendored
+1
-1
Submodule vendor/nimbus-build-system updated: 81ce5fc752...6cdd14282b
Vendored
+1
-1
Submodule vendor/nimcrypto updated: 1c8d6e3caf...a079df9242
+4
-15
@@ -6,28 +6,17 @@ import
|
||||
chronicles/log_output,
|
||||
chronicles/topics_registry
|
||||
|
||||
export chronicles.LogLevel
|
||||
|
||||
when (NimMajor, NimMinor) < (1, 4):
|
||||
{.push raises: [Defect].}
|
||||
else:
|
||||
{.push raises: [].}
|
||||
|
||||
|
||||
type
|
||||
LogLevel* = enum
|
||||
TRACE, DEBUG, INFO, NOTICE, WARN, ERROR, FATAL
|
||||
|
||||
LogFormat* = enum
|
||||
TEXT, JSON
|
||||
|
||||
converter toChroniclesLogLevel(level: LogLevel): chronicles.LogLevel =
|
||||
## Map logging log levels to the corresponding nim-chronicles' log level
|
||||
try:
|
||||
parseEnum[chronicles.LogLevel]($level)
|
||||
except CatchableError:
|
||||
chronicles.LogLevel.NONE
|
||||
|
||||
|
||||
## Utils
|
||||
|
||||
proc stripAnsi(v: string): string =
|
||||
@@ -82,12 +71,12 @@ proc setupLogLevel*(level: LogLevel) =
|
||||
topics_registry.setLogLevel(level)
|
||||
|
||||
proc setupLogFormat*(format: LogFormat, color=true) =
|
||||
proc noOutputWriter(logLevel: chronicles.LogLevel, msg: LogOutputStr) = discard
|
||||
proc noOutputWriter(logLevel: LogLevel, msg: LogOutputStr) = discard
|
||||
|
||||
proc stdoutOutputWriter(logLevel: chronicles.LogLevel, msg: LogOutputStr) =
|
||||
proc stdoutOutputWriter(logLevel: LogLevel, msg: LogOutputStr) =
|
||||
writeAndFlush(io.stdout, msg)
|
||||
|
||||
proc stdoutNoColorOutputWriter(logLevel: chronicles.LogLevel, msg: LogOutputStr) =
|
||||
proc stdoutNoColorOutputWriter(logLevel: LogLevel, msg: LogOutputStr) =
|
||||
writeAndFlush(io.stdout, stripAnsi(msg))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user