mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-04 11:33:07 +00:00
improve log message for registering new type in db (#19868)
(cherry picked from commit 9c59f8123403763c196e9dd22ed4a3d5d5b69893)
This commit is contained in:
parent
a66167e37b
commit
a1976ff97a
@ -74,7 +74,9 @@ public class TypeRegistry {
|
||||
type.setCustomProperties(storedType.getCustomProperties());
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LOG.error("Creating entity that does not exist ", e);
|
||||
LOG.debug(
|
||||
"Type '{}' not found. Proceeding to add new type entity in database.",
|
||||
type.getName());
|
||||
}
|
||||
repository.addToRegistry(type);
|
||||
} catch (Exception e) {
|
||||
|
||||
@ -118,7 +118,9 @@ public class TypeResource extends EntityResource<Type, TypeRepository> {
|
||||
type.setCustomProperties(storedType.getCustomProperties());
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LOG.error("Creating entity that does not exist ", e);
|
||||
LOG.debug(
|
||||
"Type '{}' not found. Proceeding to add new type entity in database.",
|
||||
type.getName());
|
||||
}
|
||||
this.repository.createOrUpdate(null, type);
|
||||
this.repository.addToRegistry(type);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user