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
* removed all logs from npm dataplane (except error/warning logs)
* removed all logs from npm controller (except error/warning logs)
* restored logs that are ununused by current npm (v2)
* removed test files
* resolved comments
* keep log related to reconciling chain placement when the chain is not in the right place
* added bootup logs back
* Removed two more noisy logs
* Add loglevel config option when printing application insight logs
* Updated all non-error/warning logs to commented out and with a vap TODO
* fixed typo
* small typo fix
* updated configmap with loglevel
* updated default value
* added a default value for loglevel
* fixed typo in json
* removed comma
* changed loglevel to info in configmap
* add a short sleep in TestNetPolInBackgroundSkipAddAfterRemove
* test remove dataplane changes to see if race condition fixes
* Revert "test remove dataplane changes to see if race condition fixes"
This reverts commit 08697eb.
* test
* Revert "test"
This reverts commit 449c2af.
* test
* update dataplane to test if changes are flagged in race
* added stop channels to unit tests to avoid race condtiions
* add non noisy logs back
* increased time
* revert time change after RunPeriodicTasks
* test with 1000 seconds
* 5000 milliseconds
* tweaked the delay
* update to 1500 for defer
* increased to 1500
* increase to 2000
* removed kubernetes
Copy file name to clipboardexpand all lines: npm/config/config.go
+4
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,9 @@ var DefaultConfig = Config{
53
53
NetPolInBackground: true,
54
54
EnableNPMLite: false,
55
55
},
56
+
57
+
// Setting LogLevel to "info" by default. Set to "debug" to get application insight logs (creates a listener that outputs diagnosticMessageWriter logs).
metrics.SendErrorLogAndMetric(util.NSID, "[UpdateNamespace] Error: failed to delete namespace %s from ipset list %s with err: %v", newNsName, nsLabelVal, err)
379
386
returnmetrics.UpdateOp, fmt.Errorf("failed to remove from list during sync update namespace with err %w", err)
metrics.SendErrorLogAndMetric(util.NSID, "[DeleteNamespace] Error: failed to delete namespace %s from ipset list %s with err: %v", cachedNsKey, labelKey, err)
442
452
returnfmt.Errorf("failed to clean deleted namespace when deleting key with err %w", err)
metrics.SendErrorLogAndMetric(util.NSID, "[DeleteNamespace] Error: failed to delete namespace %s from ipset list %s with err: %v", cachedNsKey, labelIpsetName, err)
450
461
returnfmt.Errorf("failed to clean deleted namespace when deleting key value with err %w", err)
0 commit comments