This is an automated email from the ASF dual-hosted git repository.

gstein pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/steve.git

commit 1adb26ec6cbfc28f7868ed709223b28702af79a2
Author: Greg Stein <[email protected]>
AuthorDate: Sat Dec 20 02:40:51 2025 -0600

    Tweak/clarify some logging for Election creation.
---
 v3/steve/election.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/v3/steve/election.py b/v3/steve/election.py
index 5e446e6..e0bbd51 100644
--- a/v3/steve/election.py
+++ b/v3/steve/election.py
@@ -42,8 +42,8 @@ class Election:
     def open_database(db_fname):
         return asfpy.db.DB(db_fname, yaml_fname=QUERIES, 
yaml_section='election')
 
-    def __init__(self, db_fname, eid):
-        _LOGGER.debug(f'Opening election ID "{eid}"')
+    def __init__(self, db_fname, eid, op='Opening'):
+        _LOGGER.debug(f'{op} election ID "{eid}"')
 
         self.db = self.open_database(db_fname)
         self.eid = eid
@@ -423,8 +423,9 @@ class Election:
             except sqlite3.IntegrityError:
                 _LOGGER.debug('EID conflict(!!) ... trying again.')
         conn.close()
+        _LOGGER.info(f'Created election[E:{eid}]')
 
-        return cls(db_fname, eid)
+        return cls(db_fname, eid, op='Opening NEW')
 
     @classmethod
     def delete_by_eid(cls, db_fname, eid):

Reply via email to