File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
storage/framework/core/logging/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export const logger = createConsola({
44
44
45
45
export { consola }
46
46
47
- export async function writeToLogFile ( message : string ) {
47
+ export async function writeToLogFile ( message : string ) : Promise < void > {
48
48
const formattedMessage = `[${ new Date ( ) . toISOString ( ) } ] ${ message } \n`
49
49
50
50
try {
@@ -141,17 +141,17 @@ export const log: Log = {
141
141
echo : ( ...args : any [ ] ) => console . log ( ...args ) ,
142
142
}
143
143
144
- export function dump ( ...args : any [ ] ) {
144
+ export function dump ( ...args : any [ ] ) : void {
145
145
args . forEach ( ( arg ) => log . debug ( arg ) )
146
146
}
147
147
148
- export function dd ( ...args : any [ ] ) {
148
+ export function dd ( ...args : any [ ] ) : void {
149
149
args . forEach ( ( arg ) => log . debug ( arg ) )
150
150
// we need to return a non-zero exit code to indicate an error
151
151
// e.g. if used in a CDK script, we want it to fail the deployment
152
152
process . exit ( ExitCode . FatalError )
153
153
}
154
154
155
- export function echo ( ...args : any [ ] ) {
155
+ export function echo ( ...args : any [ ] ) : void {
156
156
console . log ( ...args )
157
157
}
You can’t perform that action at this time.
0 commit comments