Go to file
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
cmd/numerus Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00
debian Debian: add service and post installation script to create user and group 2023-06-13 14:48:43 +02:00
demo Replace tag relations with array attributes 2023-04-07 21:31:35 +02:00
deploy Add the “invoiced” quote status 2023-06-11 22:19:43 +02:00
pkg Reduce the amount of useless data in request’s log 2023-06-13 16:05:40 +02:00
po Add the most minimal home page design 2023-06-11 22:24:25 +02:00
revert Added SQL views to compute computations amounts and edit them 2023-06-07 15:31:20 +02:00
test Added SQL views to compute computations amounts and edit them 2023-06-07 15:31:20 +02:00
verify Add the “invoiced” quote status 2023-06-11 22:19:43 +02:00
web Add the most minimal home page design 2023-06-11 22:24:25 +02:00
.gitignore Ignore IntelliJ’s project files 2023-01-30 16:42:15 +01:00
COPYING Rename LICENSE to COPYING 2023-01-15 04:08:35 +01:00
Makefile Rename extension of templates to .gohtml 2023-01-30 16:48:21 +01:00
go.mod Properly register array and composite PostgreSQL types with pgtype 2023-02-20 11:42:21 +01:00
go.sum Fix use of API methods not available in Go 1.16 2023-02-13 10:32:26 +01:00
sqitch.conf Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
sqitch.plan Tag sqitch.plan with first version 2023-06-12 16:05:50 +02:00