glib-web 6.9.2 → 6.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/glib/engine.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be34b6a047f58554b81fa3f72658076bcdefc2e06ec5b9d34f64a48208307ad2
|
|
4
|
+
data.tar.gz: b9daa421b06c9d995534d88ff8a7cc11024ca59291f67ceaaae4d96c7d2e7bed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 64e8c8220a4e59a60f6909f389dc7a1c2c0ed3e9086eb3ed4c6e8df979cdf2c87e8620dc79b75bb48eab574733a31f2787ad7bb4d281f4890e7d3feb592aab08
|
|
7
|
+
data.tar.gz: 8331b3ed70b4c3dd56dab59a9fcfaf9e59ef4fde9a1daf7c61a728598585685c7a0700ef4ebe9200bd9080dcd039d61d99358a4e623b3e739e47649dc83d704d
|
data/lib/glib/engine.rb
CHANGED
|
@@ -37,12 +37,14 @@ module Glib
|
|
|
37
37
|
has_many :snapshot_blob_references, dependent: :destroy
|
|
38
38
|
end
|
|
39
39
|
rescue ActiveRecord::NoDatabaseError, ActiveRecord::StatementInvalid,
|
|
40
|
-
ActiveRecord::ConnectionNotEstablished
|
|
40
|
+
ActiveRecord::ConnectionNotEstablished => e
|
|
41
41
|
# NoDatabaseError/StatementInvalid: the server exists but the database doesn't yet
|
|
42
42
|
# (e.g. `rails db:create`). ConnectionNotEstablished: no server reachable at all —
|
|
43
43
|
# e.g. docker build's assets:precompile, where DATABASE_HOST is unset and pg falls
|
|
44
44
|
# back to the local socket. The association gets re-registered on the next
|
|
45
|
-
# successful boot that finds the table.
|
|
45
|
+
# successful boot that finds the table. Warn (stderr, not the app log) so the
|
|
46
|
+
# breadcrumb lands in build/boot logs regardless of the configured log level.
|
|
47
|
+
warn "[glib-web] snapshot_blob_references association not registered (#{e.class}) — no DB reachable at boot"
|
|
46
48
|
end
|
|
47
49
|
end
|
|
48
50
|
|