Skip to content

Commit

Permalink
Disable debug spam by default
Browse files Browse the repository at this point in the history
  • Loading branch information
chalcolith committed Dec 15, 2023
1 parent f824abf commit 7938929
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.2
1.4.3
2 changes: 1 addition & 1 deletion corral.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"homepage": "https://github.com/chalcolith/kiuatan",
"documentation_url": "https://chalcolith.github.io/kiuatan/kiuatan--index/",
"license": "MIT",
"version": "1.4.2"
"version": "1.4.3"
},
"deps": []
}
20 changes: 11 additions & 9 deletions kiuatan/_dbg.pony
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ use "collections"

primitive _Dbg
fun out(depth: USize, msg: String) =>
let indent =
recover val
let indent' = String(depth * 2)
for i in Range(0, depth * 2) do
indent'.push(' ')
end
indent'
end
Debug.out(indent + msg)
// // Uncomment to get lots of debug output
// let indent =
// recover val
// let indent' = String(depth * 2)
// for i in Range(0, depth * 2) do
// indent'.push(' ')
// end
// indent'
// end
// Debug.out(indent + msg)
None

0 comments on commit 7938929

Please sign in to comment.