mirror of
1
Fork 0
gotosocial/internal/db/bundb
kim 098dbe6ff4
[chore] use our own logging implementation (#716)
* first commit

Signed-off-by: kim <grufwub@gmail.com>

* replace logging with our own log library

Signed-off-by: kim <grufwub@gmail.com>

* fix imports

Signed-off-by: kim <grufwub@gmail.com>

* fix log imports

Signed-off-by: kim <grufwub@gmail.com>

* add license text

Signed-off-by: kim <grufwub@gmail.com>

* fix package import cycle between config and log package

Signed-off-by: kim <grufwub@gmail.com>

* fix empty kv.Fields{} being passed to WithFields()

Signed-off-by: kim <grufwub@gmail.com>

* fix uses of log.WithFields() with whitespace issues and empty slices

Signed-off-by: kim <grufwub@gmail.com>

* *linter related grumbling*

Signed-off-by: kim <grufwub@gmail.com>

* gofmt the codebase! also fix more log.WithFields() formatting issues

Signed-off-by: kim <grufwub@gmail.com>

* update testrig code to match new changes

Signed-off-by: kim <grufwub@gmail.com>

* fix error wrapping in non fmt.Errorf function

Signed-off-by: kim <grufwub@gmail.com>

* add benchmarking of log.Caller() vs non-cached

Signed-off-by: kim <grufwub@gmail.com>

* fix syslog tests, add standard build tags to test runner to ensure consistency

Signed-off-by: kim <grufwub@gmail.com>

* make syslog tests more robust

Signed-off-by: kim <grufwub@gmail.com>

* fix caller depth arithmatic (is that how you spell it?)

Signed-off-by: kim <grufwub@gmail.com>

* update to use unkeyed fields in kv.Field{} instances

Signed-off-by: kim <grufwub@gmail.com>

* update go-kv library

Signed-off-by: kim <grufwub@gmail.com>

* update libraries list

Signed-off-by: kim <grufwub@gmail.com>

* fuck you linter get nerfed

Signed-off-by: kim <grufwub@gmail.com>

Co-authored-by: tobi <31960611+tsmethurst@users.noreply.github.com>
2022-07-19 10:47:55 +02:00
..
migrations [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
account.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
account_test.go [bugfix] Make accounts media_only query also work with pg (#643) 2022-06-10 10:56:49 +02:00
admin.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
admin_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
basic.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
basic_test.go [chore] Timeline test updates (#578) 2022-05-16 18:48:59 +02:00
bundb.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
bundb_test.go [feature] Clean up/uncache remote media (#407) 2022-03-07 11:08:26 +01:00
bundbnew_test.go [bugfix] Make accounts media_only query also work with pg (#643) 2022-06-10 10:56:49 +02:00
conn.go [chore] consolidate caching libraries (#704) 2022-07-10 17:18:21 +02:00
domain.go [chore] consolidate caching libraries (#704) 2022-07-10 17:18:21 +02:00
domain_test.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
emoji.go [feature] implement custom_emojis endpoint (#563) 2022-05-20 10:34:36 +02:00
emoji_test.go [feature] implement custom_emojis endpoint (#563) 2022-05-20 10:34:36 +02:00
errors.go go fmt 2022-02-08 12:19:54 +01:00
hook.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
instance.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
media.go [feature] Cleanup unattached local media (#680) 2022-06-30 12:22:10 +02:00
media_test.go [feature] Cleanup unattached local media (#680) 2022-06-30 12:22:10 +02:00
mention.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
mention_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
notification.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
notification_test.go [performance] Database optimizations (#419) 2022-03-07 11:33:18 +01:00
relationship.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
relationship_test.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
session.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
session_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
status.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
status_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
timeline.go [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
timeline_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
util.go [feature] Clean up/uncache remote media (#407) 2022-03-07 11:08:26 +01:00