From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,NO_DNS_FOR_FROM, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from [10.7.7.14] (unknown [182.253.88.229]) by gnuweeb.org (Postfix) with ESMTPSA id 9E75A814C5; Mon, 7 Nov 2022 01:05:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1667783131; bh=9xNZ8pP9lE5ZhlZ0bybxNYWs9sH4Cj3jEaF7Vh1y3pQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=EplRjRlrPHyL4XQODgRqQrcqftLGJWv+bN1os8SnGcisDLiUnjYeyTghvg1kJDy3s sEqLJO628o9JLo2rFhUYmzp/v/8MCp4eu2kCZMMpCVtqpb6bkDTPR3+xfRKQUlRub3 s4bi8Udc3Vl6CTpx+UayYqCGf3VyDlVkGwYeCrV3vlRX5vkHVsm4+AgV1SsSnFvYkC rGT6Ku86ykpN7A5Rd+5kErDFC1rqw0j5R6E9lyzFyaZvEtCbTO0iiGMg3wZjHhEmbs VGZ5ghh8CcIsjF6V57w+ncze7FpOF5JwkXJxqbcktd7dfCjm1f0/ug1BjCgWj+IFmR 6rO67OXQ2gB/w== Message-ID: <8ce63732-0cdb-e3b0-f292-5433e5b35ff1@gnuweeb.org> Date: Mon, 7 Nov 2022 08:05:28 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v1 11/16] telegram: Implement the log message for catching errors Content-Language: en-US To: Muhammad Rizki Cc: Alviro Iskandar Setiawan , GNU/Weeb Mailing List References: <20221104180931.3852-1-kiizuha@gnuweeb.org> <20221104180931.3852-15-kiizuha@gnuweeb.org> From: Ammar Faizi In-Reply-To: <20221104180931.3852-15-kiizuha@gnuweeb.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: On 11/5/22 1:09 AM, Muhammad Rizki wrote: > After created the BotLogger() class and initialized it to the > DaemonClient() attribute, implement it in the > telegram/mailer/listener.py to log it into the file if catching errors. > > v4: > - Add logger > > v3: > - Simplify try and except statement (comment from Muhammad Rizki). > > v2: > * no changes * > > Signed-off-by: Muhammad Rizki Why do v4, v3, v2 appear on there? I don't understand the relevance. -- Ammar Faizi