mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
fix: Simplified logging.
This commit is contained in:
@@ -34,7 +34,9 @@ main :: proc() {
|
||||
defer spall.buffer_destroy(&spall_ctx, &spall_buffer)
|
||||
}
|
||||
|
||||
console_logger := log.create_console_logger()
|
||||
logger_opts: log.Options =
|
||||
(log.Default_Console_Logger_Opts - log.Full_Timestamp_Opts - {.Short_File_Path})
|
||||
console_logger := log.create_console_logger(.Debug, logger_opts)
|
||||
context.logger = console_logger
|
||||
defer log.destroy_console_logger(console_logger)
|
||||
|
||||
|
||||
+1
-1
@@ -256,7 +256,7 @@ render_site :: proc(site: ^Site) {
|
||||
if !has_home {
|
||||
total += 1
|
||||
}
|
||||
fmt.printfln("Rendered %d pages to %s", total, site.output_dir)
|
||||
log.infof("Rendered %d pages to %s", total, site.output_dir)
|
||||
}
|
||||
|
||||
render_page_html :: proc(
|
||||
|
||||
Reference in New Issue
Block a user