This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os.log | |
| import Foundation | |
| /// Logs a message with a string format using C-style formatters, optimized for performance, converting objects to their string descriptions. | |
| /// | |
| /// This function supports logging any type, including non-`CVarArg` types (e.g., `Keychain`), by converting them to strings using `String(describing:)`. Use `String` formats with C-style formatters (e.g., `%@`, `%{private}@`) for compatibility with `os_log`. Logs are prefixed with the log level (e.g., "🟨 DEBUG"), filename (basename, truncated in the middle if longer than 20 characters), and line number, padded to a fixed width (35 characters) for vertical alignment of message content. Debug logs (`.debug`) are not included in production builds unless explicitly enabled. | |
| /// | |
| /// **Available Logging Levels (`OSLogType`)**: | |
| /// - `.default`: General-purpose logging for normal operational messages. | |
| /// - `.info`: Informational messages for tracking app flow or state. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Finch.start_link(name: MyFinch) | |
| url = "https://horizon.stellar.org/accounts/GAFNBDOZBFUKHB4ZY5ANCQ25PM33YLTMWQKW25J7LXNZM3YSHRH3BELY/transactions?limit=200&cursor=119456526699307008&include_failed=true" | |
| Finch.build(:get, url, [{"Accept", "text/event-stream"}]) | |
| |> Finch.stream(MyFinch, nil, fn | |
| {:status, status}, _acc -> | |
| IO.inspect(status) | |
| {:headers, headers}, _acc -> | |
| IO.inspect(headers) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule LumensAppWebApi.WalletController do | |
| use LumensAppWeb, :controller | |
| alias StellarBase.StrKey | |
| alias Stellar.KeyPair | |
| require Logger | |
| def show_qr(conn, %{"network" => network}) when network in ["pubnet", "testnet"] do | |
| session_id = UUID.uuid6() | |
| Logger.debug("Generating QR code for network: #{network}, session_id: #{session_id}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ueberauth config | |
| config :ueberauth, Ueberauth, | |
| providers: [ | |
| google: | |
| {Ueberauth.Strategy.Google, | |
| [ | |
| prompt: "consent", | |
| access_type: "offline", | |
| default_scope: "email" | |
| ]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule App.Simplified.Broadway do | |
| use Broadway | |
| require Logger | |
| alias Broadway.Message | |
| def start_link(_opts) do | |
| Broadway.start_link(App.Simplified.Broadway, | |
| name: BroadwayBlueskeySimplified, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule Markably.UserNotifications.Broadway do | |
| @moduledoc false | |
| use Broadway | |
| alias Broadway.Message | |
| require Logger | |
| def start_link(_opts) do | |
| Broadway.start_link(Markably.UserNotifications.Broadway, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule WordWeb.Components.ChannelRow do | |
| use Surface.LiveComponent | |
| alias Surface.Components.{ | |
| LiveRedirect | |
| } | |
| alias WordWeb.Components.{ | |
| Button, | |
| Card |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Apr 11 19:59:19 pov-epc open5gs-mmed[846]: #033[32m04/11 19:59:19.417#033[0m: [#033[33mdiam#033[0m] #033[1;33mERROR#033[0m: pid:PSM/hss.localpyhss in fd_p_ce_msgrcv@p_ce.c:747: ERROR: in '(save_remote_CE_info(*msg, peer, &pei, &rc))' :#011Invalid argument | |
| Apr 11 19:59:19 pov-epc open5gs-mmed[846]: ((null):0) | |
| Apr 11 19:59:19 pov-epc open5gs-mmed[846]: #033[32m04/11 19:59:19.417#033[0m: [#033[33mdiam#033[0m] #033[1;33mERROR#033[0m: pid:PSM/hss.localpyhss in md_hook_cb_tree@dbg_msg_dumps.c:116: DROPPED 'Internal error ('hss.localpyhss'): unhandled message.' | |
| Apr 11 19:59:19 pov-epc open5gs-mmed[846]: ((null):0) | |
| Apr 11 19:59:19 pov-epc open5gs-mmed[846]: #033[32m04/11 19:59:19.417#033[0m: [#033[33mdiam#033[0m] #033[1;33mERROR#033[0m: pid:PSM/hss.localpyhss in md_hook_cb_tree@dbg_msg_dumps.c:117: 'Capabilities-Exchange-Answer' | |
| Apr 11 19:59:19 pov-epc open5gs-mmed[846]: ((null):0) | |
| Apr 11 19:59:19 pov-epc open5gs-mmed[846]: #033[32m04/11 19:59:19.417#033[0m: [#033[33mdiam#033[0m] #033[1;33mERROR#033[0m: pid:P |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Apr 11 19:11:49 pov-epc open5gs-mmed[845]: #033[32m04/11 19:11:49.129#033[0m: [#033[33mdiam#033[0m] #033[1;33mERROR#033[0m: pid:PSM/hss.localpyhss in md_hook_cb_tree@dbg_msg_dumps.c:116: DROPPED 'Internal error ('hss.localpyhss'): unhandled message.' | |
| Apr 11 19:11:49 pov-epc open5gs-mmed[845]: ((null):0) | |
| Apr 11 19:11:49 pov-epc open5gs-mmed[845]: #033[32m04/11 19:11:49.129#033[0m: [#033[33mdiam#033[0m] #033[1;33mERROR#033[0m: pid:PSM/hss.localpyhss in md_hook_cb_tree@dbg_msg_dumps.c:117: 'Capabilities-Exchange-Answer' | |
| Apr 11 19:11:49 pov-epc open5gs-mmed[845]: ((null):0) | |
| Apr 11 19:11:49 pov-epc open5gs-mmed[845]: #033[32m04/11 19:11:49.129#033[0m: [#033[33mdiam#033[0m] #033[1;33mERROR#033[0m: pid:PSM/hss.localpyhss in md_hook_cb_tree@dbg_msg_dumps.c:117: Version: 0x01 | |
| Apr 11 19:11:49 pov-epc open5gs-mmed[845]: ((null):0) | |
| Apr 11 19:11:49 pov-epc open5gs-mmed[845]: #033[32m04/11 19:11:49.129#033[0m: [#033[33mdiam#033[0m] #033[1;33mERROR#033[0m: pid:PSM/hss.localpyhss in md_hook_cb_tree@dbg_msg_dum |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def presign_upload(entry, socket) do | |
| uploads = socket.assigns.uploads | |
| bucket = FaithfulWord.config([:s3, :bucket]) | |
| dbg(socket.assigns.upload_path_prefix) | |
| ## HACK to generate dir path on s3 by uploading an empty .gitkeep file | |
| ## this must be done before the upload occurs | |
| # gitkeep_file = File.read!("gitkeep") |
NewerOlder