diff options
| author | Shulhan <ms@kilabit.info> | 2023-10-13 15:18:09 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-10-13 15:18:09 +0700 |
| commit | aa5ec477dceb0283fc1eca05eb4fdd0c8b7d41a1 (patch) | |
| tree | 230c48f7f3abfb9340c5d58c00f47a5cf4d5cfe7 /server.go | |
| parent | 4d6bb569fd00678a7b488725ed4d1ba998b47d54 (diff) | |
| download | ciigo-aa5ec477dceb0283fc1eca05eb4fdd0c8b7d41a1.tar.xz | |
all: print log message with log package
This is to provide the timestamp to each log output.
Diffstat (limited to 'server.go')
| -rw-r--r-- | server.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -7,6 +7,7 @@ import ( "bytes" "fmt" "html/template" + "log" "strings" libhttp "github.com/shuLhan/share/lib/http" @@ -120,7 +121,7 @@ func (srv *server) start() (err error) { } } - fmt.Printf("ciigo: starting HTTP server at http://%s for %q\n", + log.Printf(`ciigo: starting HTTP server at http://%s for %q`, srv.http.Options.Address, srv.http.Options.Memfs.Opts.Root) err = srv.http.Start() |
