Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

Seanaye/chore/contacts backtrace (#3045)

Sean Ayed79fcf1baa7b
diff --git a/infra/stacks/contacts-service/service.ts b/infra/stacks/contacts-service/service.ts
index 935b7470bb..a38bcc1a20 100644
--- a/infra/stacks/contacts-service/service.ts
+++ b/infra/stacks/contacts-service/service.ts
@@ -208,6 +208,10 @@ export class ContactsService extends pulumi.ComponentResource {
name: 'BASE_URL',
value: this.domain,
},
+ {
+ name: 'RUST_BACKTRACE',
+ value: '1',
+ },
],
logConfiguration: {
logDriver: 'awsfirelens',
diff --git a/rust/cloud-storage/macro_user_id/src/user_id.rs b/rust/cloud-storage/macro_user_id/src/user_id.rs
index 9d8cd15d80..c4beeb94e6 100644
--- a/rust/cloud-storage/macro_user_id/src/user_id.rs
+++ b/rust/cloud-storage/macro_user_id/src/user_id.rs
@@ -5,7 +5,7 @@ use crate::{
error::ParseErr,
lowercased::Lowercase,
};
-use nom::{Finish, IResult, Parser, bytes::complete::tag, character::char};
+use nom::{Finish, IResult, Parser, bytes::complete::tag, character::complete::char};
use serde::{Deserialize, Serialize};
use std::ops::Deref;
@@ -245,6 +245,7 @@ where
impl<'a> MacroUserId<ArcCowStr<'a>> {
/// attempt to create a borrowed version of self from an input string
+ #[tracing::instrument(err)]
pub fn parse_from_str(input: &'a str) -> Result<Self, ParseErr> {
let (_, out) = macro_user_id(input).finish().map_err(|e| e.cloned())?;
Ok(out)