mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 19:26:37 +00:00
don't log full crypto_plugin commit data
This commit is contained in:
parent
9f3ce454b5
commit
2bf29a919e
1 changed files with 15 additions and 8 deletions
|
@ -40,15 +40,17 @@ Future<bool> doesCommitExist(
|
|||
);
|
||||
|
||||
final response = jsonDecode(commitQuery.body.toString());
|
||||
Logging.instance.log("doesCommitExist $project $commit $response",
|
||||
Logging.instance.log("doesCommitExist $project $commit", // $response",
|
||||
level: LogLevel.Info);
|
||||
bool isThereCommit;
|
||||
try {
|
||||
isThereCommit = response['sha'] == commit;
|
||||
Logging.instance
|
||||
.log("isThereCommit $isThereCommit", level: LogLevel.Info);
|
||||
Logging.instance.log(
|
||||
"$commit isThereCommit=$isThereCommit",
|
||||
level: LogLevel.Info,
|
||||
);
|
||||
return isThereCommit;
|
||||
} catch (e, s) {
|
||||
} catch (_) {
|
||||
return false;
|
||||
}
|
||||
} catch (e, s) {
|
||||
|
@ -75,14 +77,19 @@ Future<bool> isHeadCommit(
|
|||
);
|
||||
|
||||
final response = jsonDecode(commitQuery.body.toString());
|
||||
Logging.instance.log("isHeadCommit $project $commit $branch $response",
|
||||
level: LogLevel.Info);
|
||||
Logging.instance.log(
|
||||
"isHeadCommit $project $commit $branch", //$response",
|
||||
level: LogLevel.Info,
|
||||
);
|
||||
bool isHead;
|
||||
try {
|
||||
isHead = response['sha'] == commit;
|
||||
Logging.instance.log("isHead $isHead", level: LogLevel.Info);
|
||||
Logging.instance.log(
|
||||
"$commit isHead=$isHead",
|
||||
level: LogLevel.Info,
|
||||
);
|
||||
return isHead;
|
||||
} catch (e, s) {
|
||||
} catch (_) {
|
||||
return false;
|
||||
}
|
||||
} catch (e, s) {
|
||||
|
|
Loading…
Reference in a new issue