You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common/errors/feature_errors.go
+5-8Lines changed: 5 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -4,22 +4,19 @@ import (
4
4
"context"
5
5
)
6
6
7
-
// PrintMigrateFeatureInfo prints a notice of the upcoming feature migration.
8
-
// Place it after the source feature related config file pharser code.
9
-
// Important note: Only use this when the target migrating feature is under construction.
10
-
// Important note: Even when the target migrating feature has finished its construction, this notice can still be used yet before announcing deprecation of the old feature.
7
+
// PrintNonRemovalDeprecatedFeatureWarning prints a warning of the deprecated feature that won't be removed in the near future.
11
8
// Do not remove this function even there is no reference to it.
LogWarning(context.Background(), "The feature "+sourceFeature+" is deprecated, not recommended for using and might be removed. Please migrate to "+targetFeature+" as soon as possible.")
14
11
}
15
12
16
13
// PrintDeprecatedFeatureWarning prints a warning for deprecated and going to be removed feature.
17
14
// Do not remove this function even there is no reference to it.
LogWarning(context.Background(), "This feature "+feature+" is deprecated and being migrated to "+migrateFeature+". Please update your config(s) according to release note and documentation before removal.")
17
+
LogWarning(context.Background(), "This feature "+feature+" is deprecated, will be removed soon and being migrated to "+migrateFeature+". Please update your config(s) according to release note and documentation before removal.")
21
18
} else {
22
-
LogWarning(context.Background(), "This feature "+feature+" is deprecated. Please update your config(s) according to release note and documentation before removal.")
19
+
LogWarning(context.Background(), "This feature "+feature+" is deprecated and will be removed soon. Please update your config(s) according to release note and documentation before removal.")
0 commit comments