Skip to content

Commit

Permalink
Merge pull request #64 from aabril/fix/http_and_log
Browse files Browse the repository at this point in the history
Fix/http and log
  • Loading branch information
zztkm authored Aug 9, 2024
2 parents 906ec9f + 94424cb commit 41d436e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion commands/serve.v
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ pub fn (mut s ServeCommand) run() ! {
}
mut server := &http.Server{
handler: handler
port: commands.cport
addr: ':${commands.cport}'
}

// base_url を localhost にする
Expand Down
8 changes: 4 additions & 4 deletions main.v
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ fn load_config(toml_file string) !config.Config {
return config.load(toml_text)
}

fn init_logger() log.Log {
return log.Log{
level: log.Level.info
}
fn init_logger() &log.Log {
mut l := log.Log{}
l.set_level(.info)
return &l
}

fn init_commands() cli.Command {
Expand Down

0 comments on commit 41d436e

Please sign in to comment.