From bb499d9ddc5f71a67f5d3cc36e79abf47defd158 Mon Sep 17 00:00:00 2001 From: Daniel Florian Date: Tue, 12 Jun 2018 12:26:20 -0500 Subject: [PATCH] Change logging level to debug where appropriate. --- .../app/connections/connections.component.ts | 8 ++++---- .../app/dataservices/dataservices.component.ts | 18 +++++++++--------- .../connection-table-dialog.component.ts | 2 +- .../virtualization/virtualization.component.ts | 6 +++--- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/ngapp/src/app/connections/connections.component.ts b/ngapp/src/app/connections/connections.component.ts index 956076af..fd76a7c7 100644 --- a/ngapp/src/app/connections/connections.component.ts +++ b/ngapp/src/app/connections/connections.component.ts @@ -260,7 +260,7 @@ export class ConnectionsComponent extends AbstractPageComponent implements OnIni this.wizardService.setEdit(false); const link: string[] = [ ConnectionsConstants.addConnectionPath ]; - this.logger.log("[ConnectionsComponent] Navigating to: %o", link); + this.logger.debug("[ConnectionsComponent] Navigating to: %o", link); this.router.navigate(link).then(() => { // nothing to do }); @@ -278,7 +278,7 @@ export class ConnectionsComponent extends AbstractPageComponent implements OnIni this.wizardService.setEdit(true); const link: string[] = [ ConnectionsConstants.addConnectionPath ]; - this.logger.log("[ConnectionsComponent] Navigating to: %o", link); + this.logger.debug("[ConnectionsComponent] Navigating to: %o", link); this.router.navigate(link).then(() => { // nothing to do }); @@ -327,7 +327,7 @@ export class ConnectionsComponent extends AbstractPageComponent implements OnIni const selectedConn = this.filteredConnections.find((x) => x.getId() === this.connectionNameForDelete); // Note: we can only doDelete selected items that we can see in the UI. - this.logger.log("[ConnectionsPageComponent] Deleting selected Connection."); + this.logger.debug("[ConnectionsPageComponent] Deleting selected Connection."); const self = this; this.connectionService .deleteConnection(selectedConn.getId()) @@ -336,7 +336,7 @@ export class ConnectionsComponent extends AbstractPageComponent implements OnIni self.deleteUndeployConnectionVdb(selectedConn.getId()); self.removeConnectionFromList(selectedConn); const link: string[] = [ ConnectionsConstants.connectionsRootPath ]; - self.logger.log("[CreateApiPageComponent] Navigating to: %o", link); + self.logger.debug("[CreateApiPageComponent] Navigating to: %o", link); self.router.navigate(link).then(() => { // nothing to do }); diff --git a/ngapp/src/app/dataservices/dataservices.component.ts b/ngapp/src/app/dataservices/dataservices.component.ts index b41ef693..74dcb584 100644 --- a/ngapp/src/app/dataservices/dataservices.component.ts +++ b/ngapp/src/app/dataservices/dataservices.component.ts @@ -227,7 +227,7 @@ export class DataservicesComponent extends AbstractPageComponent implements OnIn this.wizardService.setEdit(false); const link: string[] = [ ConnectionsConstants.addConnectionPath ]; - this.logger.log( "[DataservicesPageComponent] Navigating to: %o", link ); + this.logger.debug( "[DataservicesPageComponent] Navigating to: %o", link ); this.router.navigate( link ).then(() => { // nothing to do } ); @@ -488,7 +488,7 @@ export class DataservicesComponent extends AbstractPageComponent implements OnIn this.exportNotificationMessage = "Downloading " + svcName + "..."; this.exportNotificationType = NotificationType.INFO; this.exportNotificationVisible = true; - this.logger.log("[DataservicesPageComponent] Downloading Dataservice: " + svcName); + this.logger.debug("[DataservicesPageComponent] Downloading Dataservice: " + svcName); const self = this; this.dataserviceService .downloadDataservice(svcName) @@ -497,7 +497,7 @@ export class DataservicesComponent extends AbstractPageComponent implements OnIn self.exportNotificationHeader = this.downloadSuccessHeader; self.exportNotificationMessage = " " + svcName + " was downloaded successfully!"; self.exportNotificationType = NotificationType.SUCCESS; - this.logger.log("[DataservicesPageComponent] Download Dataservice was successful"); + this.logger.debug("[DataservicesPageComponent] Download Dataservice was successful"); }, (error) => { self.exportNotificationHeader = this.downloadFailedHeader; @@ -518,7 +518,7 @@ export class DataservicesComponent extends AbstractPageComponent implements OnIn this.exportNotificationMessage = "Publishing " + svcName + "..."; this.exportNotificationType = NotificationType.INFO; this.exportNotificationVisible = true; - this.logger.log("[DataservicesPageComponent] Publishing Dataservice: " + svcName); + this.logger.debug("[DataservicesPageComponent] Publishing Dataservice: " + svcName); const self = this; this.dataserviceService .publishDataservice(svcName) @@ -527,13 +527,13 @@ export class DataservicesComponent extends AbstractPageComponent implements OnIn self.exportNotificationHeader = this.exportSuccessHeader; self.exportNotificationMessage = " " + svcName + " publishing successfully initiated."; self.exportNotificationType = NotificationType.INFO; - this.logger.log("[DataservicesPageComponent] Initiated publishing of dataservice"); + this.logger.debug("[DataservicesPageComponent] Initiated publishing of dataservice"); }, (error) => { self.exportNotificationHeader = this.exportFailedHeader; self.exportNotificationMessage = " Failed to publish dataservice " + svcName + "."; self.exportNotificationType = NotificationType.DANGER; - this.logger.log("[DataservicesPageComponent] Publish dataservice " + svcName + " failed."); + this.logger.error("[DataservicesPageComponent] Publish dataservice " + svcName + " failed."); } ); } @@ -573,7 +573,7 @@ export class DataservicesComponent extends AbstractPageComponent implements OnIn this.selectionService.setSelectedVirtualization(null); const link: string[] = [ DataservicesConstants.virtualizationPath ]; - this.logger.log("[DataservicesPageComponent] Navigating to: %o", link); + this.logger.debug("[DataservicesPageComponent] Navigating to: %o", link); this.router.navigate(link).then(() => { // nothing to do }); @@ -593,7 +593,7 @@ export class DataservicesComponent extends AbstractPageComponent implements OnIn this.selectionService.setSelectedVirtualization(selectedService); const link: string[] = [ DataservicesConstants.virtualizationPath ]; - this.logger.log("[DataservicesPageComponent] Navigating to: %o", link); + this.logger.debug("[DataservicesPageComponent] Navigating to: %o", link); this.router.navigate(link).then(() => { // nothing to do }); @@ -665,7 +665,7 @@ export class DataservicesComponent extends AbstractPageComponent implements OnIn // const selectedService = itemsToDelete[0]; // Note: we can only doDelete selected items that we can see in the UI. - this.logger.log("[DataservicesPageComponent] Deleting selected Dataservice."); + this.logger.debug("[DataservicesPageComponent] Deleting selected Dataservice."); const self = this; this.dataserviceService .deleteDataservice(selectedService.getId()) diff --git a/ngapp/src/app/dataservices/virtualization/view-editor/connection-table-dialog/connection-table-dialog.component.ts b/ngapp/src/app/dataservices/virtualization/view-editor/connection-table-dialog/connection-table-dialog.component.ts index 939a2f37..72375337 100644 --- a/ngapp/src/app/dataservices/virtualization/view-editor/connection-table-dialog/connection-table-dialog.component.ts +++ b/ngapp/src/app/dataservices/virtualization/view-editor/connection-table-dialog/connection-table-dialog.component.ts @@ -98,7 +98,7 @@ export class ConnectionTableDialogComponent implements OnInit { self.connectionLoadingState = LoadingState.LOADED_VALID; }, (error) => { - // self.logger.error("[ConnectionSchemaTreeComponent] Error getting connections: %o", error); + self.loggerService.error("[ConnectionTableDialogComponent] Error getting connections: %o", error); self.connectionLoadingState = LoadingState.LOADED_INVALID; } ); diff --git a/ngapp/src/app/dataservices/virtualization/virtualization.component.ts b/ngapp/src/app/dataservices/virtualization/virtualization.component.ts index 9ced2ebe..ae9050a6 100644 --- a/ngapp/src/app/dataservices/virtualization/virtualization.component.ts +++ b/ngapp/src/app/dataservices/virtualization/virtualization.component.ts @@ -281,7 +281,7 @@ export class VirtualizationComponent implements OnInit { this.selectionService.setSelectedView( this.currentVirtualization, null ); const link: string[] = [ DataservicesConstants.viewPath ]; - this.logger.log("[VirtualizationComponent] Navigating to: %o", link); + this.logger.debug("[VirtualizationComponent] Navigating to: %o", link); this.router.navigate(link).then(() => { // nothing to do }); @@ -297,7 +297,7 @@ export class VirtualizationComponent implements OnInit { this.selectionService.setSelectedView( this.currentVirtualization, selectedView ); const link: string[] = [ DataservicesConstants.viewPath ]; - this.logger.log("[VirtualizationComponent] Navigating to: %o", link); + this.logger.debug("[VirtualizationComponent] Navigating to: %o", link); this.router.navigate(link).then(() => { // nothing to do }); @@ -320,7 +320,7 @@ export class VirtualizationComponent implements OnInit { const vdbName = this.currentVirtualization.getServiceVdbName(); const modelName = this.currentVirtualization.getServiceViewModel(); // Note: we can only doDelete selected items that we can see in the UI. - this.logger.log("[VirtualizationComponent] Deleting selected Virtualization View."); + this.logger.debug("[VirtualizationComponent] Deleting selected Virtualization View."); const self = this; this.vdbService .deleteView(vdbName, modelName, selectedView.getName())