During startup: 01-config.lua:5: attempt to index field 'level' (a nil value) #2
Labels
No Label
result
accepted
result
duplicate
result
fixed
step
at issuer
step
at work
step
done
type
bug
type
epic
type
feature
type
question
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Ravise/watchtower#2
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I must admit I have a hard time reading this part, the logging
When sending the content of
watchtower.logger
to the log via core.log("action","watchtower.logger="..dump(watchtower.logger)) I get an empty tableThat leads to this crash during startup:
When I edit this line
into
it loads properly, but I'm not sure if that value is ok. You may want to help users selecting a proper value with the settingtypes.txt mechanic. Unfortunately the yl_template lacked this file at the time of forking and even now only has a slim example: https://gitea.your-land.de/your-land/yl_template/src/branch/master/settingtypes.txt
Default value of "Info" (
string
) is not correct. Value from configuration is currently to be a int (number
) as declared in values of00-tooling/logger
table. True, this should be changed into symbolic names in future. #4 created to watch this.I'll make and publish a "integration testing" mod with all sorts of
core.log("action","watchtower.logger="..dump(watchtower.logger))
calls in there. I definitely verified the mod is working on my local world... This calls for more runtime abuse of the mod table.The logger is done in OOP style with
logger:new
being the factory function.Empty table in question was caused in
01-config:05
by thelevel
table being nonexistent.Fix:
35fa0aaa63