Skip to content

Commit 2eb6bbd

Browse files
committed
[all] Add log tags
1 parent 85c74d2 commit 2eb6bbd

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
if (window.location.hostname != "localhost") {
6363
firebase.analytics();
6464
} else {
65-
console.log("GA Disabled with localhost");
65+
console.log("%c FIREBASE %c GA Disabled with localhost", "background-color: #F57C00; color: #ffffff;", "");
6666
}
6767
</script>
6868
</html>

src/components/footer/Footer.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ class Projects extends Component<ProjectsProps, ProjectsState> {
8181
}
8282

8383
async loadStats() {
84+
console.log(
85+
"%c GITHUB %c Fetching GitHub API (omega-numworks/repos)",
86+
"background-color: #000000; color: #ffffff;",
87+
""
88+
);
89+
8490
const TIMER_LABEL = "GitHub API Response delay";
8591
console.time(TIMER_LABEL);
8692
await octokit

src/index.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
import React from 'react';
2-
import ReactDOM from 'react-dom';
3-
import './index.css';
4-
import App from './App';
1+
import React from "react";
2+
import ReactDOM from "react-dom";
3+
import "./index.css";
4+
import App from "./App";
55
// import * as serviceWorker from './serviceWorker';
66

7-
ReactDOM.render(<App/>, document.getElementById('root'));
7+
console.log(
8+
"%cOmega",
9+
"font-family: Righteous, sans-serif; color: #c53431; font-size: 24px; line-height: 2; margin-bottom: 4px"
10+
);
11+
12+
ReactDOM.render(<App />, document.getElementById("root"));
813

914
// If you want your app to work offline and load faster, you can change
1015
// unregister() to register() below. Note this comes with some pitfalls.

0 commit comments

Comments
 (0)