We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41bae1e commit 9b9ba2eCopy full SHA for 9b9ba2e
core/utils/encrypt/encrypt.go
@@ -72,7 +72,9 @@ func StringDecrypt(text string) (string, error) {
72
func StringDecryptWithKey(text, key string) (string, error) {
73
defer func() {
74
if r := recover(); r != nil {
75
- global.LOG.Errorf("A panic occurred during string decrypt with key, error message: %v", r)
+ if global.LOG != nil {
76
+ global.LOG.Errorf("A panic occurred during string decrypt with key, error message: %v", r)
77
+ }
78
}
79
}()
80
if len(text) == 0 {
0 commit comments