Fixing some merge conflicts with structured logging. (#8685)

Этот коммит содержится в:
Christopher Speller
2018-04-27 13:31:50 -07:00
коммит произвёл GitHub
родитель 686c2fbab7
Коммит 2e6b3da1d3
2 изменённых файлов: 2 добавлений и 10 удалений

Просмотреть файл

@@ -5770,10 +5770,6 @@
"id": "store.sql.closing.info",
"translation": "Closing SqlStore"
},
{
"id": "store.sql.column_exists.critical",
"translation": "Failed to check if column exists %v"
},
{
"id": "store.sql.column_exists_missing_driver.critical",
"translation": "Failed to check if column exists because of missing driver"
@@ -5862,10 +5858,6 @@
"id": "store.sql.table_column_type.critical",
"translation": "Failed to get data type for column %s from table %s: %v"
},
{
"id": "store.sql.table_exists.critical",
"translation": "Failed to check if table exists %v"
},
{
"id": "store.sql.too_short_ciphertext",
"translation": "ciphertext too short"

Просмотреть файл

@@ -374,7 +374,7 @@ func (ss *SqlSupplier) DoesTableExist(tableName string) bool {
)
if err != nil {
l4g.Critical(utils.T("store.sql.table_exists.critical"), err)
mlog.Critical(fmt.Sprintf("Failed to check if table exists %v", err))
time.Sleep(time.Second)
os.Exit(EXIT_TABLE_EXISTS_SQLITE)
}
@@ -444,7 +444,7 @@ func (ss *SqlSupplier) DoesColumnExist(tableName string, columnName string) bool
)
if err != nil {
l4g.Critical(utils.T("store.sql.column_exists.critical"), err)
mlog.Critical(fmt.Sprintf("Failed to check if column exists %v", err))
time.Sleep(time.Second)
os.Exit(EXIT_DOES_COLUMN_EXISTS_SQLITE)
}