fix: Update port and improve logging
- Change server port from 8086 to 8080 - Use `console.print_info` for logging instead of `println` - Improve error handling in `decode_generic` - Update JSONRPC imports for consistency - Add `console.print_stderr` for not found methods - Refactor `DBCalendar.list` to remove redundant `println` - Add `console.print_info` for logging fallback - Introduce `print_info` in console module for blue text output
This commit is contained in:
@@ -99,5 +99,16 @@ pub fn print_green(txt string) {
|
||||
c.reset()
|
||||
}
|
||||
|
||||
// Print info in blue color
|
||||
pub fn print_info(txt string) {
|
||||
mut c := get()
|
||||
if c.prev_title || c.prev_item {
|
||||
lf()
|
||||
}
|
||||
txt2 := trim(texttools.indent(txt, ' . '))
|
||||
cprintln(foreground: .blue, text: txt2)
|
||||
c.reset()
|
||||
}
|
||||
|
||||
// import freeflowuniverse.herolib.ui.console
|
||||
// console.print_header()
|
||||
|
||||
Reference in New Issue
Block a user