Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E271D179AD for ; Fri, 17 Jul 2015 08:59:20 +0000 (UTC) Received: (qmail 4153 invoked by uid 500); 17 Jul 2015 08:59:15 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 4096 invoked by uid 500); 17 Jul 2015 08:59:15 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 4075 invoked by uid 99); 17 Jul 2015 08:59:15 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2015 08:59:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E58B4D5572 for ; Fri, 17 Jul 2015 08:59:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[none] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id vuQeyCSTOmGf for ; Fri, 17 Jul 2015 08:59:00 +0000 (UTC) Received: from smtp02.mail.pcextreme.nl (smtp02.mail.pcextreme.nl [109.72.87.139]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id A894020627 for ; Fri, 17 Jul 2015 08:58:59 +0000 (UTC) Received: from [IPv6:2001:980:7936:0:10:b05f:357a:fead] (unknown [IPv6:2001:980:7936:0:10:b05f:357a:fead]) by smtp02.mail.pcextreme.nl (Postfix) with ESMTPSA id 467FC3FFA7 for ; Fri, 17 Jul 2015 10:58:16 +0200 (CEST) Message-ID: <55A8C3AD.1000608@widodh.nl> Date: Fri, 17 Jul 2015 10:58:21 +0200 From: Wido den Hollander User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: dev@cloudstack.apache.org Subject: [LOGGING] Logging levels in CloudStack code Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hi, After debugging multiple issues in CloudStack the past week I got annoyed again by the fact that almost all logs are hidden behind loglevel DEBUG and that our code doesn't make proper use of INFO, WARN and ERROR. I opened: https://issues.apache.org/jira/browse/CLOUDSTACK-8645 Now, fixing this is rather trivial in code expertise. Changed various DEBUG rules to INFO, WARN or ERROR and the first steps are taken. Sometimes more logging needs to be added, but that's OK. I encourage everybody to make proper use of the logging instead of putting everybody to use DEBUG. Also, be aware that sometimes people might be trying to debug something happening on a production cloud at 03:00 in the night (Like me) and those people want proper loglines. When writing logs, make sure they actually tell WHAT the code does. It's not only you who has to understand the log, also the operator running the code in production. Thanks! Wido