Uploaded image for project: 'AdMaxLocal'
  1. AdMaxLocal
  2. AML-4122

campaign impression metrics script should only display help when run with -h

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Mercury
    • Fix Version/s: Mercury
    • Component/s: None
    • Labels:
      None
    • Environment:

      aml-qa4-core1
      Bid Manager #1205

    • Sprint:
      Sprint 24

      Description

      Run the Campaign Impression Metrics script with help option

      ./get-campaign-impression-metrics.sh -h

      Expected: It should only display help

      Actual: It was displaying some unnecessary logs.

      [TSAApp@aml-qa4-core1 bidmgr]$ ./get-campaign-impression-metrics.sh -h
      2016-05-03 12:12:48,094 [main] INFO o.s.c.s.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@61c80b01: startup date [Tue May 03 12:12:48 UTC 2016]; root of context hierarchy
      2016-05-03 12:12:48,170 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [bing-main-spring-config.xml]
      2016-05-03 12:12:48,474 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/bing/bing-datasource-configuration.xml]
      2016-05-03 12:12:48,759 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/bing/bing-service-component-configuration.xml]
      2016-05-03 12:12:48,801 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/dao/bing-campaign-structure-dao-configuration.xml]
      2016-05-03 12:12:48,852 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/dao/bing-error-dao-configuration.xml]
      2016-05-03 12:12:48,895 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/bing/bing-client-factory-configuration.xml]
      2016-05-03 12:12:48,905 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/bing/bing-get-campaign-list-configuration.xml]
      2016-05-03 12:12:49,040 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [yjp-main-spring-config.xml]
      2016-05-03 12:12:49,142 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/yjp/yjp-service-component-configuration.xml]
      2016-05-03 12:12:49,166 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/dao/yahoo-campaign-structure-dao-configuration.xml]
      2016-05-03 12:12:49,223 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/dao/yahoo-error-dao-configuration.xml]
      2016-05-03 12:12:49,277 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/yjp/yjp-datasource-configuration.xml]
      2016-05-03 12:12:49,327 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/yjp/yjp-client-factory-configuration.xml]
      2016-05-03 12:12:49,336 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/yjp/yjp-get-campaign-list-configuration.xml]
      2016-05-03 12:12:49,457 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [merchant-main-spring-config.xml]
      2016-05-03 12:12:49,464 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/merchant/datasource-configuration.xml]
      2016-05-03 12:12:49,501 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/merchant/summarizer-configuration.xml]
      2016-05-03 12:12:49,524 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/dao/merchant-performance-dao-configuration.xml]
      2016-05-03 12:12:49,633 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [imps-share-metrics-main-spring-config.xml]
      2016-05-03 12:12:49,650 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/performance/performance-datasource-configuration.xml]
      2016-05-03 12:12:49,678 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/performance/imps-share-metrics-configuration.xml]
      2016-05-03 12:12:49,696 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/dao/imps-share-metrics-dao-configuration.xml]
      2016-05-03 12:12:49,958 [main] INFO o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from class path resource [bing/bing-datasource.properties]
      2016-05-03 12:12:49,959 [main] INFO o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from class path resource [bing/bing-datasource-overrides.properties]
      2016-05-03 12:12:49,959 [main] WARN o.s.b.f.c.PropertyPlaceholderConfigurer - Could not load properties from class path resource [bing/bing-datasource-overrides.properties]: class path resource [bing/bing-datasource-overrides.properties] cannot be opened because it does not exist
      2016-05-03 12:12:49,965 [main] INFO o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from class path resource [yjp/yjp-datasource.properties]
      2016-05-03 12:12:49,965 [main] INFO o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from class path resource [yjp/yjp-datasource-overrides.properties]
      2016-05-03 12:12:49,965 [main] WARN o.s.b.f.c.PropertyPlaceholderConfigurer - Could not load properties from class path resource [yjp/yjp-datasource-overrides.properties]: class path resource [yjp/yjp-datasource-overrides.properties] cannot be opened because it does not exist
      2016-05-03 12:12:49,968 [main] INFO o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from class path resource [merchant/datasource.properties]
      2016-05-03 12:12:49,969 [main] INFO o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from class path resource [merchant/datasource-overrides.properties]
      2016-05-03 12:12:49,969 [main] WARN o.s.b.f.c.PropertyPlaceholderConfigurer - Could not load properties from class path resource [merchant/datasource-overrides.properties]: class path resource [merchant/datasource-overrides.properties] cannot be opened because it does not exist
      2016-05-03 12:12:49,971 [main] INFO o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from class path resource [performance/performance-datasource.properties]
      2016-05-03 12:12:49,972 [main] INFO o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from class path resource [performance/performance-datasource-overrides.properties]
      2016-05-03 12:12:49,972 [main] WARN o.s.b.f.c.PropertyPlaceholderConfigurer - Could not load properties from class path resource [performance/performance-datasource-overrides.properties]: class path resource [performance/performance-datasource-overrides.properties] cannot be opened because it does not exist
      2016-05-03 12:12:50,005 [main] INFO o.s.b.f.s.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4dbb9a58: defining beans bing-datasource-property-configurer,bing-target-datasource,bing-datasource,bing-transaction-manager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,bing-campaign-structure-dao,bing-error-dao,bing-campaign-service-component,bing-client-factory,getBingCampaignList,yahoo-campaign-structure-dao,yahoo-error-dao,yahoo-campaign-service-component,yjp-datasource-property-configurer,yjp-target-datasource,yjp-datasource,yjp-transaction-manager,yjp-client-factory,getCampaignList,merchant-datasource-property-configurer,merchant-target-datasource,merchant-datasource,merchant-transaction-manager,merchant-performance-dao,merchant-summarizer,performance-datasource-property-configurer,performance-target-datasource,performance-datasource,performance-transaction-manager,impression-share-metrics-dao,impression-share-metrics; root of factory hierarchy
      ------- Loaded DatabaseAccounts properties from file:/usr/local/tsa/bidmgr-distribution-2.9.0-mercury-SNAPSHOT-dev-t20160426085926/libs/deployment-bidmgr-shaded-jar-2.9.0-mercury-SNAPSHOT.jar!/core-jdb-datasource.properties -------

      {datasource-user=spike, datasource-password=tar63t}

      usage: Campaign Impression Share Metrics Report [-D] [-d <arg>] [-h] [-p
      <arg>] [-r <arg>] [-S <arg>] [-T <arg>] [--threads <num-threads>]
      [-U <arg>] [-u <arg>]
      D,-debug-stack Debug Show Callstack
      d,-debug <arg> The Debug Level
      h,-help Help
      p,-dbpass <arg> The Database Password
      r,-dburl <arg> The Database URL
      S,-distribution <arg> Search Engine / Distribution ID
      T,-date <arg> Summary Date
      --threads <num-threads> Number of Threads to run
      U,-seuser <arg> Search Engine User ID
      u,-dbuser <arg> The Database User
      2016-05-03 12:12:50,422 [Thread-1] INFO o.s.c.s.ClassPathXmlApplicationContext - Closing org.springframework.context.support.ClassPathXmlApplicationContext@61c80b01: startup date [Tue May 03 12:12:48 UTC 2016]; root of context hierarchy
      2016-05-03 12:12:50,423 [Thread-1] INFO o.s.b.f.s.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4dbb9a58: defining beans bing-datasource-property-configurer,bing-target-datasource,bing-datasource,bing-transaction-manager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,bing-campaign-structure-dao,bing-error-dao,bing-campaign-service-component,bing-client-factory,getBingCampaignList,yahoo-campaign-structure-dao,yahoo-error-dao,yahoo-campaign-service-component,yjp-datasource-property-configurer,yjp-target-datasource,yjp-datasource,yjp-transaction-manager,yjp-client-factory,getCampaignList,merchant-datasource-property-configurer,merchant-target-datasource,merchant-datasource,merchant-transaction-manager,merchant-performance-dao,merchant-summarizer,performance-datasource-property-configurer,performance-target-datasource,performance-datasource,performance-transaction-manager,impression-share-metrics-dao,impression-share-metrics; root of factory hierarchy

        Attachments

          Activity

            People

            • Assignee:
              Madhan Madhan Pulipati [X] (Inactive)
              Reporter:
              Madhan Madhan Pulipati [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: