Skip to content

Commit 4df8b17

Browse files
committed
Elections
Added log info
1 parent 7e6ca82 commit 4df8b17

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

elections/code/infrastructure/repositories/SapphireFoundationMemberRepository.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ public function getMembersThatNotVotedOnLatestNElections($n, $limit, $offset, IE
3636
{
3737
$specification = new FoundationMembershipRevocationSpecification;
3838
$sql = $specification->sql($n, $necessary_votes = 2 , $election_repository, $offset, $limit);
39+
if(Director::is_cli()){
40+
fwrite
41+
(
42+
STDOUT,
43+
sprintf
44+
(
45+
"%s - [SapphireFoundationMemberRepository::getMembersThatNotVotedOnLatestNElections] sql %s",
46+
gmdate('Y-m-d h:i:s \G\M\T', time()),
47+
$sql
48+
).PHP_EOL
49+
);
50+
}
3951
$res = DB::query($sql);
4052
$list = [];
4153

0 commit comments

Comments
 (0)