numerus/pkg
jordi fita mas 6732d654a4 Reduce the amount of useless data in request’s log
I tried to have a log line that uses the “common” format from Apache,
because i thought that it would help me reuse regexps i have defined for
fail2ban filters and such.

However, it makes no much sense.

For once, i was repeating the date and time: log.Printf already does
that for me.

And, second, i do not need that data in Numerus’ log because i always
run it behind a proxy that _has_ a “common”-formatted log file, so
there is no need for me to repeat all that data again.

What i need is the IP, to know whether remotedAdd() function works as
expected; the method, to check that the override does its job; the path,
to know what resource the browser requested; the response status code,
so that i do not need to open the browser console for that; the response
size, to keep on eye that i do not return a lot of data; and the
total response time, to realize how long my unoptimized SQL queries
slows the application down.

The rest, Apache should do its job and record it in its log file for
fail2ban and whatever i need the logs for in the future.
2023-06-13 16:05:40 +02:00
..
company.go Add quote number formatting and next number field to tax details 2023-06-09 12:43:50 +02:00
contacts.go There is no need for array_to_string() in tags 2023-05-27 21:36:10 +02:00
dashboard.go Add tooltips to the SVG chart with date and amount 2023-05-21 19:22:46 +02:00
db.go Add quote number formatting and next number field to tax details 2023-06-09 12:43:50 +02:00
expenses.go There is no need for array_to_string() in tags 2023-05-27 21:36:10 +02:00
form.go Allow empty contact and payment method for quotes 2023-06-08 13:05:41 +02:00
htmx.go Use HTMx to add product rows “inline” in the invoice form 2023-04-24 02:00:38 +02:00
invoices.go Allow to create an invoice from the data of a quotation 2023-06-10 20:46:03 +02:00
locale.go Add currency_pattern to language relation 2023-02-23 12:12:33 +01:00
logger.go Reduce the amount of useless data in request’s log 2023-06-13 16:05:40 +02:00
login.go Log the remote address, and only trust localhost proxies 2023-06-13 14:21:54 +02:00
pgtypes.go Add HTTP controller and view to add quotes 2023-06-07 16:35:31 +02:00
products.go There is no need for array_to_string() in tags 2023-05-27 21:36:10 +02:00
profile.go Create constants for the HTMX request and response headers used 2023-04-06 12:07:20 +02:00
quote.go Allow empty contact and payment method for quotes 2023-06-08 13:05:41 +02:00
recover.go Gofmt recover.go 2023-01-22 20:37:34 +01:00
router.go Add the most minimal home page design 2023-06-11 22:24:25 +02:00
template.go Begin the dashboard with expenses, gross income, net income, and taxes 2023-05-16 14:56:49 +02:00