Skip to content

Commit

Permalink
Added extra logs (#259)
Browse files Browse the repository at this point in the history
* Added additional logs to debug cellbox issue

Signed-off-by: HimajaDhanyamraju2 <[email protected]>

* Resolved compilation issue

Signed-off-by: HimajaDhanyamraju2 <[email protected]>

* Added extra logs

Signed-off-by: HimajaDhanyamraju2 <[email protected]>

---------

Signed-off-by: HimajaDhanyamraju2 <[email protected]>
Co-authored-by: HimajaDhanyamraju2 <[email protected]>
  • Loading branch information
HimajaDhanyamraju2 and HimajaDhanyamraju2 authored May 10, 2024
1 parent 940a4a1 commit 0d2cc6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hub/hub_service.bal
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ service object {
if (message.hubSecret is string) {
string hubSecret = <string> message.hubSecret;
string encryptionKey = config:HUB_SECRET_ENCRYPTION_KEY;
log:printInfo("Encryption key", encryptionKey = encryptionKey);
log:printInfo("Encryption key", encryptionKey = encryptionKey);
log:printInfo("Encryption key format", encryptionKeyFormat = config:HUB_SECRET_ENCRYPTION_KEY_FORMAT);
byte[] encryptionKeyInBytes = (config:HUB_SECRET_ENCRYPTION_KEY_FORMAT).equalsIgnoreCaseAscii("base64-encoded-bytes") ? (check array:fromBase64(encryptionKey)) : encryptionKey.toBytes();
log:printInfo("Encryption key in bytes", encryptionKeyInBytes = encryptionKeyInBytes);
byte[16] initialVector = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
Expand Down

0 comments on commit 0d2cc6e

Please sign in to comment.