mirror of
https://github.com/lus/pasty.git
synced 2023-08-10 21:13:09 +03:00
print specific notices for legacy storage drivers
This commit is contained in:
parent
05a27a00c0
commit
9708263373
@ -56,6 +56,15 @@ func main() {
|
|||||||
case "sqlite":
|
case "sqlite":
|
||||||
driver = sqlite.New(cfg.SQLite.File)
|
driver = sqlite.New(cfg.SQLite.File)
|
||||||
break
|
break
|
||||||
|
case "file":
|
||||||
|
// TODO: Readme notice
|
||||||
|
log.Fatal().Msg("You have configured the legacy 'file' storage driver. This storage driver has been removed in favor of PostgreSQL and SQLite, but the latter one may be a seamless alternative for you. Head over to the projects README for more information.")
|
||||||
|
break
|
||||||
|
case "mongodb":
|
||||||
|
case "s3":
|
||||||
|
// TODO: Readme notice
|
||||||
|
log.Fatal().Msg("You have configured a legacy storage driver. This storage driver has been removed in favor of PostgreSQL and SQLite, but the migration process is well-documented. Head over to the projects README for more information.")
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
log.Fatal().Str("driver_name", cfg.StorageDriver).Msg("An invalid storage driver name was given.")
|
log.Fatal().Str("driver_name", cfg.StorageDriver).Msg("An invalid storage driver name was given.")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user