summaryrefslogtreecommitdiff
path: root/internal/io/dlog
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-10-10 14:02:12 +0300
committerPaul Buetow <paul@buetow.org>2021-10-10 14:15:26 +0300
commitf44792c9102488774c9993b080f35c65287a64b1 (patch)
tree94b0be371a2135f4fea63bca87e14ce057fc172e /internal/io/dlog
parent97747ea0f3178f7f5890512d483fdccaa82846b0 (diff)
add another dmap test - reading 100 source files at once
fix a data race when reading multiple files on one server from the same session at once
Diffstat (limited to 'internal/io/dlog')
-rw-r--r--internal/io/dlog/level.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/io/dlog/level.go b/internal/io/dlog/level.go
index 0971094..05d9ed9 100644
--- a/internal/io/dlog/level.go
+++ b/internal/io/dlog/level.go
@@ -9,6 +9,7 @@ type level int
// Available log levels.
const (
+ None level = iota
Fatal level = iota
Error level = iota
Warn level = iota
@@ -26,6 +27,8 @@ var allLevels = []level{Fatal, Error, Warn, Info, Default, Verbose, Debug,
func newLevel(l string) level {
switch strings.ToLower(l) {
+ case "none":
+ return None
case "fatal":
return Fatal
case "error":
@@ -54,6 +57,8 @@ func newLevel(l string) level {
func (l level) String() string {
switch l {
+ case None:
+ return "NONE"
case Fatal:
return "FATAL"
case Error: