mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:37:32 +00:00
fix: emit only if data and marshal invalid metadata
* fix(emitter): only emit if there are log records * fix(actions): marshal invalid metadata value into string
This commit is contained in:
@@ -49,6 +49,9 @@ func (l *databaseLogStorage) QuotaUnit() quota.Unit {
|
||||
}
|
||||
|
||||
func (l *databaseLogStorage) Emit(ctx context.Context, bulk []logstore.LogRecord) error {
|
||||
if len(bulk) == 0 {
|
||||
return nil
|
||||
}
|
||||
builder := squirrel.Insert(accessLogsTable).
|
||||
Columns(
|
||||
accessTimestampCol,
|
||||
|
@@ -42,6 +42,9 @@ func (l *databaseLogStorage) QuotaUnit() quota.Unit {
|
||||
}
|
||||
|
||||
func (l *databaseLogStorage) Emit(ctx context.Context, bulk []logstore.LogRecord) error {
|
||||
if len(bulk) == 0 {
|
||||
return nil
|
||||
}
|
||||
builder := squirrel.Insert(executionLogsTable).
|
||||
Columns(
|
||||
executionTimestampCol,
|
||||
|
Reference in New Issue
Block a user