Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Graphe des révisions

13 commits

Auteur SHA1 Message Date
Atvaark
b12e812b36 Add database logmode to the config
This allows users to change the default logging verbosity (errors)
to either *detailed* (prints SQL statements) or *silent*.
Also added support for using a custom logger function.

- Fixed the gorm unit test that checks the automigrations
  They will actually fail if any errors were logged now.
- Added a postgres unit test
  Currently disabled because it would need a running local
  postgres db and  a change to the .travis.yml file to work
  inside the CI build.
2017-05-11 22:28:09 +02:00
Jeff Becker
0e8a3cde3b Merge branch 'cache-interface' into merge-cache-interface 2017-05-11 09:24:20 -04:00
Jeff Becker
059ea7d2a8 abstract out cache 2017-05-11 09:01:53 -04:00
Jeff Becker
1089883ed5 initial 2017-05-10 13:29:35 -04:00
Chris MacLeod
c9b72206a5 Consistency, formatting, error checking, cleanup, and a couple bug fixes (#245)
* Checkpoint: it builds

The config, db, model, network, os, and public packages have had some
fixes to glaringly obvious flaws, dead code removed, and stylistic
changes.

* Style changes and old code removal in router

Router needs a lot of work done to its (lack of) error handling.

* Dead code removal and style changes

Now up to util/email/email.go. After I'm finished with the initial sweep
I'll go back and fix error handling and security issues. Then I'll fix
the broken API. Then I'll go through to add documentation and fix code
visibility.

* Finish dead code removal and style changes

Vendored libraries not touched. Everything still needs security fixes
and documentation. There's also one case of broken functionality.

* Fix accidental find-and-replace

* Style, error checking, saftey, bug fix changes

* Redo error checking erased during merge

* Re-add merge-erased fix. Make Safe safe.
2017-05-09 21:34:40 -05:00
sfan5
975ce5e6d4 Don't look for old comments on new torrents 2017-05-08 23:53:37 +02:00
Jeff Becker
37350a1233 add initial optional i2p connectivity 2017-05-07 15:51:37 -04:00
akuma06
dc050d29fc Updated my own branch 2017-05-06 17:53:17 +02:00
ayame-git
19a72dfe08 config file works now 2017-05-06 21:43:15 +03:00
akuma06
a456a5f9f2 Fixed parameters through command line for DB
config is now a singleton
can use config.GetInstance() to know the context
2017-05-06 17:37:56 +02:00
Eliot Whalan
0d6f5ef50b Add caching? 2017-05-06 15:30:32 +10:00
Eliot Whalan
f50a0f9ace Merge branch 'master' of github.com:ewhal/nyaa 2017-05-05 23:18:18 +10:00
akuma06
ade17dad04 Merge branch 'master' of https://github.com/ewhal/nyaa
Conflicts:
	main.go
2017-05-05 15:08:02 +02:00